diff options
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 01d8598604..c1669f133d 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -275,11 +275,14 @@ def testimage_main(d): | |||
275 | # Get use_kvm | 275 | # Get use_kvm |
276 | kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH')) | 276 | kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH')) |
277 | 277 | ||
278 | # Get OVMF | ||
279 | ovmf = d.getVar("QEMU_USE_OVMF") | ||
280 | |||
278 | slirp = False | 281 | slirp = False |
279 | if d.getVar("QEMU_USE_SLIRP"): | 282 | if d.getVar("QEMU_USE_SLIRP"): |
280 | slirp = True | 283 | slirp = True |
281 | 284 | ||
282 | # TODO: We use the current implementatin of qemu runner because of | 285 | # TODO: We use the current implementation of qemu runner because of |
283 | # time constrains, qemu runner really needs a refactor too. | 286 | # time constrains, qemu runner really needs a refactor too. |
284 | target_kwargs = { 'machine' : machine, | 287 | target_kwargs = { 'machine' : machine, |
285 | 'rootfs' : rootfs, | 288 | 'rootfs' : rootfs, |
@@ -293,6 +296,7 @@ def testimage_main(d): | |||
293 | 'slirp' : slirp, | 296 | 'slirp' : slirp, |
294 | 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"), | 297 | 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"), |
295 | 'serial_ports': len(d.getVar("SERIAL_CONSOLES").split()), | 298 | 'serial_ports': len(d.getVar("SERIAL_CONSOLES").split()), |
299 | 'ovmf' : ovmf, | ||
296 | } | 300 | } |
297 | 301 | ||
298 | if d.getVar("TESTIMAGE_BOOT_PATTERNS"): | 302 | if d.getVar("TESTIMAGE_BOOT_PATTERNS"): |