diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-01-15 10:17:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-16 11:54:30 +0000 |
commit | edd629029979dc18905fce23b64216f15eea501f (patch) | |
tree | 10dfe6aa502df88d047f767ff6c7998bf83661eb /scripts/runqemu-internal | |
parent | 2027fd1bbfc2c136672d5054ba722e9d9d80451d (diff) | |
download | openembedded-core-edd629029979dc18905fce23b64216f15eea501f.tar.gz openembedded-core-edd629029979dc18905fce23b64216f15eea501f.tar.bz2 openembedded-core-edd629029979dc18905fce23b64216f15eea501f.zip |
runqemu scripts: add support for booting an ISO image
Add support for booting an ISO image for runqemu scripts.
[YOCTO #3710]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 9d570ed9c6..0e3dad0e13 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal @@ -475,6 +475,10 @@ if [ "x$RAMFS" = "xtrue" ]; then KERNCMDLINE="root=/dev/ram0 debugshell" fi +if [ "x$ISOFS" = "xtrue" ]; then + QEMUOPTIONS="-cdrom $ROOTFS" +fi + if [ "x$QEMUOPTIONS" = "x" ]; then echo "Error: Unable to support this combination of options" cleanup @@ -577,6 +581,9 @@ echo "Running $QEMU..." if [ "$FSTYPE" = "vmdk" ]; then echo $QEMUBIN $VM $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN $VM $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT +elif [ "$FSTYPE" = "iso" ]; then + echo $QEMUBIN $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT + LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT else echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"' LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT" |