diff options
author | Emmanuel Roullit <emmanuel.roullit@gmail.com> | 2018-09-05 21:49:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:27:45 +0000 |
commit | 185f6a7fd8361a74f375c83daec0cb4037e3dd73 (patch) | |
tree | eb885715eb9edc5d72d62fd96e8b287331bc321f /meta/classes | |
parent | fa5ebe62e22842709567123e31987824f0a6db29 (diff) | |
download | poky-185f6a7fd8361a74f375c83daec0cb4037e3dd73.tar.gz |
testimage.bbclass: fix qemu_use_kvm handling
QEMU_USE_KVM can either be a boolean or a whitespace separated list
of kvm supported machines.
For the 'intel-corei7-64' machine, defined in meta-intel, kvm could not be
used as the 'x86' substring is not part of its machine name.
By changing the order of this 'or' statement and setting
the 'QEMU_USE_KVM' variable to 'intel-corei7-64', it is possible to run the
'testimage' task with kvm support successfully.
(From OE-Core rev: a22789253aa653dc50fb159b40910248c2f98dd4)
(From OE-Core rev: 3383b1f9bb4aedfb88e888e88fe316e3f361c7bf)
Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/testimage.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 3e4ffcaca8..11c2ddab98 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -240,8 +240,8 @@ def testimage_main(d): | |||
240 | # Get use_kvm | 240 | # Get use_kvm |
241 | qemu_use_kvm = d.getVar("QEMU_USE_KVM") | 241 | qemu_use_kvm = d.getVar("QEMU_USE_KVM") |
242 | if qemu_use_kvm and \ | 242 | if qemu_use_kvm and \ |
243 | (oe.types.boolean(qemu_use_kvm) and 'x86' in machine or \ | 243 | (d.getVar('MACHINE') in qemu_use_kvm.split() or \ |
244 | d.getVar('MACHINE') in qemu_use_kvm.split()): | 244 | oe.types.boolean(qemu_use_kvm) and 'x86' in machine): |
245 | kvm = True | 245 | kvm = True |
246 | else: | 246 | else: |
247 | kvm = False | 247 | kvm = False |