summaryrefslogtreecommitdiff
path: root/util/m5
diff options
context:
space:
mode:
authorEarl Ou <shunhsingou@google.com>2017-10-06 20:55:41 +0800
committerGabe Black <gabeblack@google.com>2018-01-11 23:33:31 +0000
commitcc51037e8074949bc9e7638babfb597490d007ec (patch)
tree9f5bbe0f66dbc2c33d2610ec62bd77a8d0e0fe39 /util/m5
parentb622601dfbabfb7cebf1a6df2eb8b0440d8365cb (diff)
downloadgem5-cc51037e8074949bc9e7638babfb597490d007ec.tar.xz
util/m5: add Android.mk
Add Android.mk so we can build m5 tool in Android tree. Change-Id: I7023130bd3ce5e015b8f7c41941eafb4611da8cb Reviewed-on: https://gem5-review.googlesource.com/7363 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'util/m5')
-rw-r--r--util/m5/Android.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/util/m5/Android.mk b/util/m5/Android.mk
new file mode 100644
index 000000000..34fb10ec9
--- /dev/null
+++ b/util/m5/Android.mk
@@ -0,0 +1,21 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := m5
+LOCAL_SRC_FILES := \
+ m5.c
+
+ifeq ($(TARGET_ARCH),x86)
+ LOCAL_SRC_FILES += \
+ m5op_x86.S
+else ifeq ($(TARGET_ARCH),arm)
+ LOCAL_SRC_FILES += \
+ m5op_arm.S
+else ifeq ($(TARGET_ARCH),arm64)
+ LOCAL_SRC_FILES += \
+ m5op_arm_A64.S
+else
+ $(error "Unsupported TARGET_ARCH $(TARGET_ARCH)")
+endif
+
+include $(BUILD_EXECUTABLE)