]> code.ossystems Code Review - openembedded-core.git/commit
testimage.bbclass: fix qemu_use_kvm handling
authorEmmanuel Roullit <emmanuel.roullit@gmail.com>
Wed, 5 Sep 2018 19:49:58 +0000 (21:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Sep 2018 11:09:11 +0000 (12:09 +0100)
commita22789253aa653dc50fb159b40910248c2f98dd4
treed0a591a89920feb908c6f6f90846f05614628428
parentb7f3f7ecfdf26129c5df2d3ee14e73c4633ea5a3
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.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testimage.bbclass