diff options
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 11c2ddab98..b3ae54d6a4 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -238,13 +238,7 @@ def testimage_main(d): | |||
238 | boottime = int(d.getVar("TEST_QEMUBOOT_TIMEOUT")) | 238 | boottime = int(d.getVar("TEST_QEMUBOOT_TIMEOUT")) |
239 | 239 | ||
240 | # Get use_kvm | 240 | # Get use_kvm |
241 | qemu_use_kvm = d.getVar("QEMU_USE_KVM") | 241 | kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH')) |
242 | if qemu_use_kvm and \ | ||
243 | (d.getVar('MACHINE') in qemu_use_kvm.split() or \ | ||
244 | oe.types.boolean(qemu_use_kvm) and 'x86' in machine): | ||
245 | kvm = True | ||
246 | else: | ||
247 | kvm = False | ||
248 | 242 | ||
249 | # TODO: We use the current implementatin of qemu runner because of | 243 | # TODO: We use the current implementatin of qemu runner because of |
250 | # time constrains, qemu runner really needs a refactor too. | 244 | # time constrains, qemu runner really needs a refactor too. |