diff options
author | Scott Garman <scott.a.garman@intel.com> | 2012-08-13 13:20:38 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-17 18:04:20 +0100 |
commit | 5bffd94316d9e6d49afea001c6f0a1d09624379a (patch) | |
tree | 9b7958ba5bad675790267a07cd2a1f5fdfefd3f8 /scripts/runqemu-internal | |
parent | a102793b1583d9d385a8f01ae89f2235531e6c83 (diff) | |
download | poky-5bffd94316d9e6d49afea001c6f0a1d09624379a.tar.gz |
runqemu: support booting ramfs-based images
Added support for booting ramfs-based images (e.g, poky-tiny) which
do not have block device support.
This fixes [YOCTO #2612].
(From OE-Core rev: b09c45f017da71ff966004752f8e926ea00ac451)
Signed-off-by: Scott Garman <scott.a.garman@intel.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-x | scripts/runqemu-internal | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index eeadb24ebe..0d4f4a1d08 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
@@ -453,6 +453,11 @@ if [ "$MACHINE" = "akita" ]; then | |||
453 | fi | 453 | fi |
454 | fi | 454 | fi |
455 | 455 | ||
456 | if [ "x$RAMFS" = "xtrue" ]; then | ||
457 | QEMUOPTIONS="-initrd $ROOTFS -nographic" | ||
458 | KERNCMDLINE="root=/dev/ram0" | ||
459 | fi | ||
460 | |||
456 | if [ "x$QEMUOPTIONS" = "x" ]; then | 461 | if [ "x$QEMUOPTIONS" = "x" ]; then |
457 | echo "Error: Unable to support this combination of options" | 462 | echo "Error: Unable to support this combination of options" |
458 | cleanup | 463 | cleanup |