Skip to contentSkip to conversation

runqemu: use "raw" instead of "bin" for ovmf

PATCH Jon Mason 1 participant 1 message Mar 3, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jon Mason

author
#1 lore raw
Quoted 17 lines · Jon Mason via lists.openembedded.org

From: Jon Mason <[email protected]>

bin is not an acceptable format for qemu and will throw an error is set. The correct format in this case is raw.

Change-Id I9d78e356d39ecb15bef886c19870b029d9badd65
---
 scripts/runqemu | 2 ++
 1 file changed, 2 insertions(+)
scripts/runqemu +0 -0
index 532f2e338d52..392576bf4997 100755

scripts/runqemu class BaseConfig(object): · line 1349

Quoted 5 lines
scripts/runqemu +2 -0
@@ -1345,6 +1345,8 @@ class BaseConfig(object):
 
         for ovmf in self.ovmf_bios:
             format = ovmf.rsplit('.', 1)[-1]
+            if format == "bin":
+                format == "raw"

Well, this is pretty stupid of me. v2 coming soon with actual variable assignment!

Quoted 9 lines
scripts/runqemu +0 -1
             self.qemu_opt += ' -drive if=pflash,format=%s,file=%s' % (format, ovmf)
 
         self.qemu_opt += ' ' + self.qemu_opt_script
--

2.20.1