summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-03-27 15:03:23 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-28 08:43:13 +0100
commit759fcd204f9594b078b4ceebcdb2049793f7a288 (patch)
tree3d246431a95c816a1b80d358fadcf706e0654593 /meta/classes
parent7f6b1cd2c1f5090d1f46995e769bae5d1b947327 (diff)
downloadpoky-759fcd204f9594b078b4ceebcdb2049793f7a288.tar.gz
oeqa: QEMU_USE_KVM can list machines
Previously, QEMU_USE_KVM=True enabled the use of kvm only when "x86" was in the MACHINE name. That is too limiting, because for example intel-corei7-64 can also use kvm but it wasn't possible to enable that without changing OE-core. That traditional usage is still supported. In addition, QEMU_USE_KVM can be set to a list of space-separated MACHINE names for which kvm is to be enabled. (From OE-Core rev: d5421dd00b9cf785fa77e77c6c739e8bd8822fa3) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/testimage.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index bfe5714454..a259423c22 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -210,7 +210,9 @@ def testimage_main(d):
210 210
211 # Get use_kvm 211 # Get use_kvm
212 qemu_use_kvm = d.getVar("QEMU_USE_KVM") 212 qemu_use_kvm = d.getVar("QEMU_USE_KVM")
213 if qemu_use_kvm and qemu_use_kvm == 'True' and 'x86' in machine: 213 if qemu_use_kvm and \
214 (qemu_use_kvm == 'True' and 'x86' in machine or \
215 d.getVar('MACHINE') in qemu_use_kvm.split()):
214 kvm = True 216 kvm = True
215 else: 217 else:
216 kvm = False 218 kvm = False