|
@@ -10,12 +10,10 @@ include $(TOPDIR)/mk/image.mk
|
|
|
KERNEL:=$(LINUX_DIR)/arch/microblaze/boot/$(ADK_TARGET_KERNEL)
|
|
|
|
|
|
ifeq ($(ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605),y)
|
|
|
-MODEL:=petalogix-ml605
|
|
|
-DTB:=-dtb target/microblaze/ml605.dtb
|
|
|
+QEMU_ARGS+=-M petalogix-ml605 -dtb target/microblaze/ml605.dtb
|
|
|
endif
|
|
|
ifeq ($(ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800),y)
|
|
|
-MODEL:=petalogix-s3adsp1800
|
|
|
-DTB:=-dtb target/microblaze/s3adsp1800.dtb
|
|
|
+QEMU_ARGS+=-M petalogix-s3adsp1800
|
|
|
endif
|
|
|
|
|
|
ifeq ($(ADK_TARGET_FS),squashfs)
|
|
@@ -25,7 +23,7 @@ imageinstall: $(BUILD_DIR)/root.squashfs
|
|
|
@cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
|
|
|
ifneq ($(ADK_HARDWARE_QEMU),)
|
|
|
@echo "Start qemu with following options:"
|
|
|
- @echo 'qemu-system-${CPU_ARCH} -M $(MODEL) -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -pflash $(FW_DIR)/$(ROOTFSSQUASHFS) $(DTB)'
|
|
|
+ @echo 'qemu-system-${CPU_ARCH} $(QEMU_ARGS) -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -pflash $(FW_DIR)/$(ROOTFSSQUASHFS)'
|
|
|
endif
|
|
|
endif
|
|
|
ifeq ($(ADK_TARGET_FS),jffs2)
|
|
@@ -33,7 +31,7 @@ imageinstall: $(FW_DIR)/$(ROOTFSJFFS2)
|
|
|
@cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
|
|
|
ifneq ($(ADK_HARDWARE_QEMU),)
|
|
|
@echo "Start qemu with following options:"
|
|
|
- @echo 'qemu-system-${CPU_ARCH} -M $(MODEL) -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -pflash $(FW_DIR)/$(ROOTFSJFFS2) $(DTB)'
|
|
|
+ @echo 'qemu-system-${CPU_ARCH} $(QEMU_ARGS) -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -pflash $(FW_DIR)/$(ROOTFSJFFS2)'
|
|
|
endif
|
|
|
endif
|
|
|
ifeq ($(ADK_TARGET_FS),initramfs)
|
|
@@ -43,7 +41,7 @@ imageinstall: $(FW_DIR)/$(INITRAMFS)
|
|
|
@echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
|
|
|
ifneq ($(ADK_HARDWARE_QEMU),)
|
|
|
@echo "Start qemu with following command line:"
|
|
|
- @echo 'qemu-system-${CPU_ARCH} -M $(MODEL) -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS} $(DTB)'
|
|
|
+ @echo 'qemu-system-${CPU_ARCH} $(QEMU_ARGS) -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
|
|
|
endif
|
|
|
endif
|
|
|
ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
|
|
@@ -52,7 +50,7 @@ imageinstall: createinitramfs
|
|
|
@echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
|
|
|
ifneq ($(ADK_HARDWARE_QEMU),)
|
|
|
@echo "Start qemu with following command line:"
|
|
|
- @echo 'qemu-system-${CPU_ARCH} -M $(MODEL) -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL) $(DTB)'
|
|
|
+ @echo 'qemu-system-${CPU_ARCH} $(QEMU_ARGS) -nographic -kernel $(FW_DIR)/$(TARGET_KERNEL)'
|
|
|
endif
|
|
|
endif
|
|
|
ifeq ($(ADK_TARGET_FS),archive)
|