diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-26 18:34:51 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-26 18:34:51 +0100 |
commit | 181e796c9beb08534f9e3f50c881bb8feaf78c5c (patch) | |
tree | 3bbd80f9cd0ad2a3572fe3135056f24a89728029 /target/arm/Makefile | |
parent | d8b9dfc2b0e223f4d63850f173775a8bd0931d84 (diff) |
rework arm support, add qemu arm model vexpress for cortex-a9 emulation (hard float)
Diffstat (limited to 'target/arm/Makefile')
-rw-r--r-- | target/arm/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/target/arm/Makefile b/target/arm/Makefile index 080ac4f57..68d1a6c1f 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -18,10 +18,14 @@ LOADADDR:=0x20008000 ifeq ($(ADK_TARGET_QEMU_ARM_MODEL_SPITZ),y) MACH:=spitz endif -ifeq ($(ADK_TARGET_QEMU_ARM_MODEL_VERSATILE),y) +ifeq ($(ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB),y) MACH:=versatilepb NET:=-net user,hostfwd=tcp::2222-:22 -net nic,model=smc91c111 endif +ifeq ($(ADK_TARGET_QEMU_ARM_MODEL_VEXPRESS_A9),y) +MACH:=vexpress-a9 +NET:=-cpu cortex-a9 -device lan9118,netdev=adk0 -netdev user,id=adk0,hostfwd=tcp::2222-:22 +endif kernel-install: gzip -9 < $(LINUX_DIR)/arch/arm/boot/Image > ${BUILD_DIR}/Image.gz @@ -72,10 +76,14 @@ imageinstall: $(FW_DIR)/$(INITRAMFS) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}' ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y) +ifeq ($(ADK_TARGET_QEMU_WITH_VIRTIO),y) + @echo 'qemu-system-arm -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -drive file=qemu-${CPU_ARCH}.img,if=virtio,index=0 -net nic,model=virtio -net user' +else @echo "Start qemu with following command line:" @echo 'qemu-system-arm -M $(MACH) -nographic $(NET) -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}' endif endif +endif ifeq ($(ADK_TARGET_FS),initramfs-piggyback) imageinstall: createinitramfs @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL) |