diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-01-08 06:48:09 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-01-08 06:48:09 +0100 |
commit | 449fb17cc884a21f65f24bb01d2a162c3dbcc5fc (patch) | |
tree | e41fe92707d1b438b2bbdabeea41e75a2055d41e /target/arc/Makefile | |
parent | 2d61c1d309fabe089e4c704a26a39290cf186ce6 (diff) |
add support for Synopsys ARCv3
Diffstat (limited to 'target/arc/Makefile')
-rw-r--r-- | target/arc/Makefile | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/target/arc/Makefile b/target/arc/Makefile index 8eed37760..decdd8176 100644 --- a/target/arc/Makefile +++ b/target/arc/Makefile @@ -5,10 +5,12 @@ include $(ADK_TOPDIR)/rules.mk include $(ADK_TOPDIR)/mk/kernel-build.mk include $(ADK_TOPDIR)/mk/image.mk +KERNEL:=$(LINUX_DIR)/$(ADK_TARGET_KERNEL) ifeq ($(ADK_TARGET_KERNEL_UIMAGE),y) KERNEL:=$(LINUX_DIR)/arch/arc/boot/uImage -else -KERNEL:=$(LINUX_DIR)/$(ADK_TARGET_KERNEL) +endif +ifeq ($(ADK_TARGET_KERNEL_LOADER),y) +KERNEL:=$(LINUX_DIR)/arch/arc/boot/loader endif QEMU_ARGS:=-monitor none -serial stdio @@ -16,13 +18,25 @@ QEMU_ARGS+=-netdev user,id=eth0 -device virtio-net-device,netdev=eth0 QEMU_ARGS+=${ADK_QEMU_ARGS} ifeq ($(ADK_TARGET_CPU_ARC_ARC700),y) +QEMU:=qemu-system-arc QEMU_ARGS+=-cpu arc700 endif ifeq ($(ADK_TARGET_CPU_ARC_ARCHS),y) +QEMU:=qemu-system-arc QEMU_ARGS+=-cpu archs endif +ifeq ($(ADK_TARGET_CPU_ARC_ARC32),y) +QEMU:=qemu-system-arc +QEMU_ARGS+=-cpu hs5x -M virt,ram_start=0 +endif + +ifeq ($(ADK_TARGET_CPU_ARC_ARC64),y) +QEMU:=qemu-system-arc64 +QEMU_ARGS+=-cpu hs6x -M virt,ram_start=0 +endif + # target helper text ifeq ($(ADK_TARGET_FS),archive) targethelp: @@ -43,7 +57,7 @@ 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)' + @echo '${QEMU} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)' endif ifeq ($(ADK_TARGET_SYSTEM_SYNOPSYS_NSIM),y) ifeq ($(ADK_TARGET_LITTLE_ENDIAN),y) |