summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Mason <jon.mason@arm.com>2021-03-03 13:29:45 -0500
committerSteve Sakoman <steve@sakoman.com>2021-03-11 05:00:02 -1000
commitb3cbde17aff693e2d5ba6d61922fca54e75b9f6e (patch)
treea159e360e36341c1219c7f3f0a683b286a9f360c
parentd37f474f7211fe9d6e1e5561bf27cc6afa2872ab (diff)
downloadopenembedded-core-contrib-b3cbde17aff693e2d5ba6d61922fca54e75b9f6e.tar.gz
openembedded-core-contrib-b3cbde17aff693e2d5ba6d61922fca54e75b9f6e.tar.bz2
openembedded-core-contrib-b3cbde17aff693e2d5ba6d61922fca54e75b9f6e.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: Steve Sakoman <steve@sakoman.com>
-rwxr-xr-xscripts/runqemu2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index cc87ea871a..63e533a934 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1328,6 +1328,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