[oe-commits] [openembedded-core] 15/43: qemuboot.conf: make cpus match built artifacts

git at git.openembedded.org git at git.openembedded.org
Thu Jul 27 21:38:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch pyro
in repository openembedded-core.

commit d945678264ba31dccb5b1dec973e8f3a58403ea2
Author: Martin Kelly <mkelly at xevo.com>
AuthorDate: Tue May 2 12:20:13 2017 -0700

    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 at xevo.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/conf/machine/include/qemuboot-x86.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/conf/machine/include/qemuboot-x86.inc b/meta/conf/machine/include/qemuboot-x86.inc
index 06ac983..acd03a1 100644
--- a/meta/conf/machine/include/qemuboot-x86.inc
+++ b/meta/conf/machine/include/qemuboot-x86.inc
@@ -1,12 +1,12 @@
 # For runqemu
 IMAGE_CLASSES += "qemuboot"
 QB_SYSTEM_NAME_x86 = "qemu-system-i386"
-QB_CPU_x86 = "-cpu qemu32"
-QB_CPU_KVM_x86 = "-cpu kvm32"
+QB_CPU_x86 = "-cpu pentium2"
+QB_CPU_KVM_x86 = "-cpu pentium2"
 
 QB_SYSTEM_NAME_x86-64 = "qemu-system-x86_64"
 QB_CPU_x86-64 = "-cpu core2duo"
-QB_CPU_KVM_x86-64 = "-cpu kvm64"
+QB_CPU_KVM_x86-64 = "-cpu core2duo"
 
 QB_AUDIO_DRV = "alsa"
 QB_AUDIO_OPT = "-soundhw ac97,es1370"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list