]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-qemu: add nographic option for disabling video console
authorScott Garman <scott.a.garman@intel.com>
Thu, 14 Oct 2010 18:23:26 +0000 (11:23 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 14 Oct 2010 19:12:03 +0000 (20:12 +0100)
This fixes [BUGID #408]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
scripts/poky-qemu

index 66e7a298f62438238092d1961eed895df32d04ed..66a6631df57f579e79e1fa2476052422d1806d4d 100755 (executable)
@@ -27,6 +27,7 @@ usage() {
     echo "  ROOTFS - the rootfs image file or nfsroot directory to use"
     echo "  MACHINE=xyz - the machine name (optional, autodetected from KERNEL filename if unspecified)"
     echo "  Additional QEMU command-line options can be passed with:"
+    echo "    nographic - disables video console"
     echo "    serial - enables a serial console on /dev/ttyS0"
     echo ""
     echo "Examples:"
@@ -85,11 +86,12 @@ while [ $i -le $# ]; do
                 usage
             fi
             ;;
+        "nographic")
+            SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -nographic"
+            ;;
         "serial")
-            # Will need to append to these variables when we
-            # accept more values
-            SCRIPT_QEMU_OPT="-serial stdio"
-            SCRIPT_KERNEL_OPT="console=ttyS0"
+            SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio"
+            SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
             ;;
         *)
             # A directory name is an nfs rootfs