summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2019-07-24 15:44:04 -0600
committerJordan Justen <jordan.l.justen@intel.com>2019-07-29 22:47:01 -0700
commit8fed4e47d9a64a3d047f74b5f465f554d3d912a4 (patch)
treef7cbf19841f33b6e1a4de02158c6999dc618a873 /OvmfPkg
parent4634fd429eff8b5a4143e1ca98852d89b92b2009 (diff)
downloadedk2-8fed4e47d9a64a3d047f74b5f465f554d3d912a4.tar.gz
edk2-8fed4e47d9a64a3d047f74b5f465f554d3d912a4.tar.bz2
edk2-8fed4e47d9a64a3d047f74b5f465f554d3d912a4.zip
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>
Diffstat (limited to 'OvmfPkg')
-rwxr-xr-xOvmfPkg/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index 0506221be0..91b1442ade 100755
--- a/OvmfPkg/build.sh
+++ b/OvmfPkg/build.sh
@@ -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