From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: bsdio.com, ip: 65.103.231.193, mailfrom: rebecca@bsdio.com) Received: from muon.bsdio.com (muon.bsdio.com [65.103.231.193]) by groups.io with SMTP; Tue, 23 Jul 2019 18:51:08 -0700 Received: from muon.bsdio.com (localhost [127.0.0.1]) by muon.bsdio.com (Postfix) with ESMTP id 9CD588989B; Tue, 23 Jul 2019 19:51:29 -0600 (MDT) Received: from muon.bsdio.com ([127.0.0.1]) by muon.bsdio.com (muon.bsdio.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6fsddCrBqabQ; Tue, 23 Jul 2019 19:51:28 -0600 (MDT) Received: from photon.int.bluestop.org (unknown [10.0.10.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by muon.bsdio.com (Postfix) with ESMTPSA; Tue, 23 Jul 2019 19:51:27 -0600 (MDT) From: rebecca@bsdio.com To: devel@edk2.groups.io, Jordan Justen , Laszlo Ersek , Ard Biesheuvel Cc: Rebecca Cran Subject: [PATCH 1/2] OvmfPkg/build.sh: use newer '-drive if=pflash' syntax when running qemu Date: Tue, 23 Jul 2019 19:51:00 -0600 Message-Id: <20190724015101.13044-1-rebecca@bsdio.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Specify the firmware to use via the newer '-drive if=3Dpflash' syntax which allows specifying the raw format and readonly parameters. This avoids warnings with newer version of QEMU. Signed-off-by: Rebecca Cran --- OvmfPkg/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh index a2c4eff2a5..e2890ff762 100755 --- a/OvmfPkg/build.sh +++ b/OvmfPkg/build.sh @@ -268,7 +268,7 @@ if [[ "$RUN_QEMU" =3D=3D "yes" ]]; then fi ln -sf $FV_DIR/OVMF.fd $QEMU_FIRMWARE_DIR/bios.bin if [[ "$ENABLE_FLASH" =3D=3D "yes" ]]; then - QEMU_COMMAND=3D"$QEMU_COMMAND -pflash $QEMU_FIRMWARE_DIR/bios.bin" + QEMU_COMMAND=3D"$QEMU_COMMAND -drive if=3Dpflash,format=3Draw,readon= ly,file=3D$QEMU_FIRMWARE_DIR/bios.bin" else QEMU_COMMAND=3D"$QEMU_COMMAND -L $QEMU_FIRMWARE_DIR" fi --=20 2.22.0