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>
22 lines
422 B
Makefile
22 lines
422 B
Makefile
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)
|