summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-03-02 17:50:05 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-25 10:29:14 +0000
commite469bb722e89d4246aa908660b22f79b8a7f1041 (patch)
tree0c0a5eeb984ee05ece19f44e71434bf2cd2998c5 /scripts/runqemu-internal
parent36103299291aaecda12f8b7ca5a21c0e50ace8e3 (diff)
downloadpoky-e469bb722e89d4246aa908660b22f79b8a7f1041.tar.gz
runqemu: simplify checking for iso and ramfs
(From OE-Core rev: 69a1fca4374797dea56035ce56a17441a2ca9280) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 89a1e1ba27..6fa93c9d07 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -593,12 +593,12 @@ if [ "$MACHINE" = "qemuzynq" ]; then
593 fi 593 fi
594fi 594fi
595 595
596if [ "x$RAMFS" = "xtrue" ]; then 596if [ "$FSTYPE" = "cpio.gz" ]; then
597 QEMUOPTIONS="-initrd $ROOTFS -nographic" 597 QEMUOPTIONS="-initrd $ROOTFS -nographic"
598 KERNCMDLINE="root=/dev/ram0 console=ttyS0 debugshell" 598 KERNCMDLINE="root=/dev/ram0 console=ttyS0 debugshell"
599fi 599fi
600 600
601if [ "x$ISOFS" = "xtrue" ]; then 601if [ "$FSTYPE" = "iso" ]; then
602 QEMUOPTIONS="$QEMU_NETWORK_CMD -cdrom $ROOTFS $QEMU_UI_OPTIONS" 602 QEMUOPTIONS="$QEMU_NETWORK_CMD -cdrom $ROOTFS $QEMU_UI_OPTIONS"
603fi 603fi
604 604