util/m5: add Android.mk
authorEarl Ou <shunhsingou@google.com>
Fri, 6 Oct 2017 12:55:41 +0000 (20:55 +0800)
committerGabe Black <gabeblack@google.com>
Thu, 11 Jan 2018 23:33:31 +0000 (23:33 +0000)
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>

util/m5/Android.mk [new file with mode: 0644]

diff --git a/util/m5/Android.mk b/util/m5/Android.mk
new file mode 100644 (file)
index 0000000..34fb10e
--- /dev/null
@@ -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)