mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
testimage: enable ovmf support
Add support for running wic images with EFI as testimage. Introduces a variable called QEMU_USE_OVMF for configuration. (From OE-Core rev: 3af8aaff68ed332d812ea7dc184d392700ad7882) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b3a109509b
commit
da0ab97f61
@@ -275,11 +275,14 @@ def testimage_main(d):
|
||||
# Get use_kvm
|
||||
kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH'))
|
||||
|
||||
# Get OVMF
|
||||
ovmf = d.getVar("QEMU_USE_OVMF")
|
||||
|
||||
slirp = False
|
||||
if d.getVar("QEMU_USE_SLIRP"):
|
||||
slirp = True
|
||||
|
||||
# TODO: We use the current implementatin of qemu runner because of
|
||||
# TODO: We use the current implementation of qemu runner because of
|
||||
# time constrains, qemu runner really needs a refactor too.
|
||||
target_kwargs = { 'machine' : machine,
|
||||
'rootfs' : rootfs,
|
||||
@@ -293,6 +296,7 @@ def testimage_main(d):
|
||||
'slirp' : slirp,
|
||||
'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"),
|
||||
'serial_ports': len(d.getVar("SERIAL_CONSOLES").split()),
|
||||
'ovmf' : ovmf,
|
||||
}
|
||||
|
||||
if d.getVar("TESTIMAGE_BOOT_PATTERNS"):
|
||||
|
||||
Reference in New Issue
Block a user