mirror of https://github.com/acidanthera/audk.git
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:
parent
4634fd429e
commit
8fed4e47d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue