Skip to contentSkip to conversation

qemu: Overwrite KVM explicitly for darwin/mingw

PATCH New Richard Purdie 1 participant 1 message Aug 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: Overwrite KVM explicitly for darwin/mingw

Force KVM to disabled on mingw/darwin systems since this makes no sense there.

meta/recipes-devtools/qemu/qemu.inc +5 -1
index 50f1c06..2c49914 100644
@@ -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