]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/runqemu: add support to pass bootparams to kernel
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 19 Aug 2011 13:37:26 +0000 (13:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Aug 2011 01:23:16 +0000 (18:23 -0700)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
scripts/runqemu

index ed8c05bcb2a3ddbc803faad84b5b02e8ef2ffb3b..91c3c9e93cc4c8e6225013d987fcff683f5fc632 100755 (executable)
@@ -135,6 +135,9 @@ while [ $i -le $# ]; do
             SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio"
             SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
             ;;
+        "bootparams="*)
+            SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT ${arg##bootparams=}"
+            ;;
         "audio")
             if [[ "x$MACHINE" == "xqemux86" || "x$MACHINE" == "xqemux86-64" ]]; then
                 echo "Enable audio on qemu. Pls. install snd_intel8x0 or snd_ens1370 driver in linux guest.";