summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorJon Mason <jon.mason@arm.com>2021-03-03 13:29:45 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-06 22:39:03 +0000
commitca1382756c0a26b1ff7b46a61079704d4b11c57c (patch)
treeaa37c21f616b2bbd9d846a26df00e3a6c7dc5744 /scripts/runqemu
parent9852a5caf52fd8bb833bee05a47cfe111ed5b662 (diff)
downloadpoky-ca1382756c0a26b1ff7b46a61079704d4b11c57c.tar.gz
runqemu: use "raw" instead of "bin" for ovmf
bin is not an acceptable format for qemu and will throw an error is set. The correct format in this case is raw. (From OE-Core rev: cd279aeb986b4676ea8ecb1e7b12c7e29e83460a) Signed-off-by: Jon Mason <jon.mason@arm.com> Change-Id: I9d78e356d39ecb15bef886c19870b029d9badd65 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 532f2e338d..cf64ca149c 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1345,6 +1345,8 @@ class BaseConfig(object):
1345 1345
1346 for ovmf in self.ovmf_bios: 1346 for ovmf in self.ovmf_bios:
1347 format = ovmf.rsplit('.', 1)[-1] 1347 format = ovmf.rsplit('.', 1)[-1]
1348 if format == "bin":
1349 format = "raw"
1348 self.qemu_opt += ' -drive if=pflash,format=%s,file=%s' % (format, ovmf) 1350 self.qemu_opt += ' -drive if=pflash,format=%s,file=%s' % (format, ovmf)
1349 1351
1350 self.qemu_opt += ' ' + self.qemu_opt_script 1352 self.qemu_opt += ' ' + self.qemu_opt_script