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:09 +0100 |
commit | b09c45f017da71ff966004752f8e926ea00ac451 (patch) | |
tree | 70c21125a56534f5c0c1444c7d2d6443ee40500d /scripts/runqemu-internal | |
parent | 5b0d8cb8463da423035484f42659926b472c53b3 (diff) | |
download | openembedded-core-b09c45f017da71ff966004752f8e926ea00ac451.tar.gz openembedded-core-b09c45f017da71ff966004752f8e926ea00ac451.tar.bz2 openembedded-core-b09c45f017da71ff966004752f8e926ea00ac451.zip |
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].
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
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 fi fi +if [ "x$RAMFS" = "xtrue" ]; then + QEMUOPTIONS="-initrd $ROOTFS -nographic" + KERNCMDLINE="root=/dev/ram0" +fi + if [ "x$QEMUOPTIONS" = "x" ]; then echo "Error: Unable to support this combination of options" cleanup |