summaryrefslogtreecommitdiff
path: root/target/arc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-02-08 17:05:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2023-02-08 17:06:03 +0100
commitc116ba7cc55dadd20cba82aca750b551fc7c9f46 (patch)
tree972b557fb84c7e50e03fb26191bd83fc64b9d23d /target/arc/Makefile
parent0178c43226f548a78a8bd8b449c8146ff06320b5 (diff)
arc: update toolchain, add support for qemu
Diffstat (limited to 'target/arc/Makefile')
-rw-r--r--target/arc/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/arc/Makefile b/target/arc/Makefile
index bdd3e4c9a..702debfce 100644
--- a/target/arc/Makefile
+++ b/target/arc/Makefile
@@ -11,6 +11,17 @@ else
KERNEL:=$(LINUX_DIR)/$(ADK_TARGET_KERNEL)
endif
+QEMU_ARGS:=-monitor none -serial stdio
+QEMU_ARGS+=${ADK_QEMU_ARGS}
+
+ifeq ($(ADK_TARGET_CPU_ARC_ARC700),y)
+QEMU_ARGS+=-cpu arc700
+endif
+
+ifeq ($(ADK_TARGET_CPU_ARC_ARCHS),y)
+QEMU_ARGS+=-cpu archs
+endif
+
# target helper text
ifeq ($(ADK_TARGET_FS),archive)
targethelp:
@@ -29,6 +40,10 @@ endif
ifeq ($(ADK_TARGET_FS),initramfspiggyback)
targethelp:
@echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
+ifeq ($(ADK_TARGET_QEMU),y)
+ @echo "Start qemu with following command line:"
+ @echo 'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)'
+endif
ifeq ($(ADK_TARGET_SYSTEM_SYNOPSYS_NSIM),y)
ifeq ($(ADK_TARGET_LITTLE_ENDIAN),y)
ifeq ($(ADK_TARGET_CPU_ARC_ARC700),y)