]> code.ossystems Code Review - openembedded-core.git/commit
qemuboot.conf: make cpus match built artifacts
authorMartin Kelly <mkelly@xevo.com>
Tue, 2 May 2017 19:20:13 +0000 (12:20 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jul 2017 21:35:00 +0000 (22:35 +0100)
commitd945678264ba31dccb5b1dec973e8f3a58403ea2
tree8f50ea56d6b92a8f0438d503f7a8fb33893a705f
parent5a97694767c76f3083e9ffeeaaa19d76ff424c83
qemuboot.conf: make cpus match built artifacts

Currently, the qemu CPUs for are specified as generic, but the built
artifacts are not. For example, we build x86-64 artifacts targeting
core2duo but run them in qemu with generic qemu/kvm CPUs. This causes
some packages that take advantage of the host architecture to crash
because they try to use CPU features not advertised by qemu. As an
example, Qt uses ssse3. When artifacts linked against Qt and built
targeting core2duo attempt to run on a generic qemu/kvm CPU, we get
the following crash:

Incompatible processor. This Qt build requires the following features:
     ssse3

We could fix this by making packages like Qt not take advantage of CPU
features. However, we will probably keep facing similar issues over
time, so it's better to resolve them in a more enduring way.

Fix this by making the qemu -cpu arguments match the built artifacts.

(From OE-Core rev: 20b3574749420a1fef2cb2e0579584453dd4c5c5)

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/conf/machine/include/qemuboot-x86.inc