]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: Add option for BIOS binary filename
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Fri, 6 Feb 2015 20:59:58 +0000 (12:59 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Feb 2015 08:40:34 +0000 (08:40 +0000)
If we intend to use a custom BIOS binary file, it would be good to be
able to specify the name of the binary via the -bios option of qemu. The
name of the custom binary could be different from the default name used
by qemu. For instance, it was bios.bin in qemu 1.5.0 and changed to
bios-256k.bin for 2.1.0.

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/runqemu

index da35bb80d2cdd8a7e8c4f8c40196e87b49c173f1..3d753191cd2612bc763892e8410435b53074ea27 100755 (executable)
@@ -153,6 +153,9 @@ while true; do
        "biosdir="*)
             CUSTOMBIOSDIR="${arg##biosdir=}"
            ;;
+        "biosfilename="*)
+            SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -bios ${arg##biosfilename=}"
+            ;;
         "qemuparams="*)
             SCRIPT_QEMU_EXTRA_OPT="${arg##qemuparams=}"