summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-01-15 02:17:01 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-16 11:57:33 (GMT)
commit0c1b6098d445b67735ad6cfd21d07f865837169f (patch)
tree79115ffdce8c3eb9ef0fcf0350832456f49c9bb3 /scripts/runqemu-internal
parent14363c30ce103f3116d687fd279cb671c6337f9a (diff)
downloadpoky-0c1b6098d445b67735ad6cfd21d07f865837169f.tar.gz
runqemu scripts: add support for booting an ISO image
Add support for booting an ISO image for runqemu scripts. [YOCTO #3710] (From OE-Core rev: edd629029979dc18905fce23b64216f15eea501f) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 9d570ed..0e3dad0 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -475,6 +475,10 @@ if [ "x$RAMFS" = "xtrue" ]; then
475 KERNCMDLINE="root=/dev/ram0 debugshell" 475 KERNCMDLINE="root=/dev/ram0 debugshell"
476fi 476fi
477 477
478if [ "x$ISOFS" = "xtrue" ]; then
479 QEMUOPTIONS="-cdrom $ROOTFS"
480fi
481
478if [ "x$QEMUOPTIONS" = "x" ]; then 482if [ "x$QEMUOPTIONS" = "x" ]; then
479 echo "Error: Unable to support this combination of options" 483 echo "Error: Unable to support this combination of options"
480 cleanup 484 cleanup
@@ -577,6 +581,9 @@ echo "Running $QEMU..."
577if [ "$FSTYPE" = "vmdk" ]; then 581if [ "$FSTYPE" = "vmdk" ]; then
578 echo $QEMUBIN $VM $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT 582 echo $QEMUBIN $VM $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT
579 LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN $VM $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT 583 LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN $VM $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT
584elif [ "$FSTYPE" = "iso" ]; then
585 echo $QEMUBIN $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT
586 LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT
580else 587else
581 echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"' 588 echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"'
582 LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT" 589 LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT"