Patchwork qemu: Overwrite KVM explicitly for darwin/mingw

login
register
mail settings
Submitter Richard Purdie
Date Aug. 14, 2014, 3:56 p.m.
Message ID <1408031789.22187.117.camel@ted>
Download mbox | patch
Permalink /patch/78251/
State Accepted
Commit 3939d66849ae4556e15d02bd8ff05a1a0adbb629
Headers show

Comments

Richard Purdie - Aug. 14, 2014, 3:56 p.m.
Force KVM to disabled on mingw/darwin systems since this makes no
sense there.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Patch

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 50f1c06..2c49914 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -47,12 +47,16 @@  do_configure_prepend_class-nativesdk() {
 	fi
 }
 
+KVMENABLE = "--enable-kvm"
+KVMENABLE_darwin = "--disable-kvm"
+KVMENABLE_mingw32 = "--disable-kvm"
+
 do_configure() {
     # Handle distros such as CentOS 5 32-bit that do not have kvm support
     KVMOPTS="--disable-kvm"
     if [ "${PN}" != "qemu-native" -a "${PN}" != "nativesdk-qemu" ] \
        || [ -f /usr/include/linux/kvm.h ] ; then
-       KVMOPTS="--enable-kvm"
+       KVMOPTS="${KVMENABLE}"
     fi
 
     ${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --libexecdir=${libexecdir} --localstatedir=${localstatedir} --disable-strip ${EXTRA_OECONF} $KVMOPTS