summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-06-23 21:55:53 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-06-23 22:57:52 +0200
commitcf584e106f540cfd3a2ac7ece70a4211adbcc66d (patch)
tree4ee5576692b2c9cbdde107725c876320071ff1d8
parent026cb095e0b519b142d89839c751b8becf846ffa (diff)
qemu-sparc64: avoid warning
-rw-r--r--target/sparc64/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/sparc64/Makefile b/target/sparc64/Makefile
index 9a224a430..2c7efe3d6 100644
--- a/target/sparc64/Makefile
+++ b/target/sparc64/Makefile
@@ -9,6 +9,11 @@ KERNEL:=$(LINUX_DIR)/vmlinux
QEMU_ARGS:=-M sun4u
QEMU_ARGS+=${ADK_QEMU_ARGS}
+
+ifeq ($(ADK_TARGET_QEMU_WITH_BLOCK),y)
+QEMU_ARGS+=-drive file=qemu-${ADK_TARGET_CPU_ARCH}.img,format=raw
+endif
+
ifeq ($(ADK_TARGET_QEMU_WITH_VIRTIO),y)
QEMU_ARGS+=-net nic,model=virtio -net user
ifeq ($(ADK_TARGET_FS),archive)
@@ -27,7 +32,7 @@ ifeq ($(ADK_TARGET_QEMU),y)
@echo "Use following command to create a QEMU Image:"
@echo "./scripts/create.sh qemu-${ADK_TARGET_CPU_ARCH}.img $(FW_DIR)/$(ROOTFSTARBALL)"
@echo "Start qemu with following options:"
- @echo 'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL) qemu-${ADK_TARGET_CPU_ARCH}.img'
+ @echo 'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)'
endif
endif
ifeq ($(ADK_TARGET_FS),initramfs)