summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Mason <jon.mason@arm.com>2021-03-03 13:29:45 -0500
committerAnuj Mittal <anuj.mittal@intel.com>2021-03-19 16:03:25 +0800
commitc3eb98b9d079fbee40753d074ff1dbf497cbb1d0 (patch)
treea860efc9741fd76bbaa100a15c2fe700b2621c4c
parentb475ba8676c88286185aaafb3ff5217e475ec494 (diff)
downloadopenembedded-core-contrib-c3eb98b9d079fbee40753d074ff1dbf497cbb1d0.tar.gz
openembedded-core-contrib-c3eb98b9d079fbee40753d074ff1dbf497cbb1d0.tar.bz2
openembedded-core-contrib-c3eb98b9d079fbee40753d074ff1dbf497cbb1d0.zip
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. Signed-off-by: Jon Mason <jon.mason@arm.com> Change-Id: I9d78e356d39ecb15bef886c19870b029d9badd65 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cd279aeb986b4676ea8ecb1e7b12c7e29e83460a) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rwxr-xr-xscripts/runqemu2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index e5e66f3453..b80fec1c99 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1340,6 +1340,8 @@ class BaseConfig(object):
for ovmf in self.ovmf_bios:
format = ovmf.rsplit('.', 1)[-1]
+ if format == "bin":
+ format = "raw"
self.qemu_opt += ' -drive if=pflash,format=%s,file=%s' % (format, ovmf)
self.qemu_opt += ' ' + self.qemu_opt_script