OvmfPkg/build.sh: use newer '-drive if=pflash' syntax when running qemu

Specify the firmware to use via the newer '-drive if=pflash' syntax
which allows specifying the raw format parameter. This
avoids warnings with newer version of QEMU.

Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
This commit is contained in:
Rebecca Cran 2019-07-24 15:44:04 -06:00 committed by Jordan Justen
parent 4634fd429e
commit 8fed4e47d9
No known key found for this signature in database
GPG Key ID: 37F99F68CAF992EB
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ if [[ "$RUN_QEMU" == "yes" ]]; then
fi
ln -sf $FV_DIR/OVMF.fd $QEMU_FIRMWARE_DIR/bios.bin
if [[ "$ENABLE_FLASH" == "yes" ]]; then
QEMU_COMMAND="$QEMU_COMMAND -pflash $QEMU_FIRMWARE_DIR/bios.bin"
QEMU_COMMAND="$QEMU_COMMAND -drive if=pflash,format=raw,file=$QEMU_FIRMWARE_DIR/bios.bin"
else
QEMU_COMMAND="$QEMU_COMMAND -L $QEMU_FIRMWARE_DIR"
fi