summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 50f1c06e50..2c4991494d 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -47,12 +47,16 @@ do_configure_prepend_class-nativesdk() {
47 fi 47 fi
48} 48}
49 49
50KVMENABLE = "--enable-kvm"
51KVMENABLE_darwin = "--disable-kvm"
52KVMENABLE_mingw32 = "--disable-kvm"
53
50do_configure() { 54do_configure() {
51 # Handle distros such as CentOS 5 32-bit that do not have kvm support 55 # Handle distros such as CentOS 5 32-bit that do not have kvm support
52 KVMOPTS="--disable-kvm" 56 KVMOPTS="--disable-kvm"
53 if [ "${PN}" != "qemu-native" -a "${PN}" != "nativesdk-qemu" ] \ 57 if [ "${PN}" != "qemu-native" -a "${PN}" != "nativesdk-qemu" ] \
54 || [ -f /usr/include/linux/kvm.h ] ; then 58 || [ -f /usr/include/linux/kvm.h ] ; then
55 KVMOPTS="--enable-kvm" 59 KVMOPTS="${KVMENABLE}"
56 fi 60 fi
57 61
58 ${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --libexecdir=${libexecdir} --localstatedir=${localstatedir} --disable-strip ${EXTRA_OECONF} $KVMOPTS 62 ${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --libexecdir=${libexecdir} --localstatedir=${localstatedir} --disable-strip ${EXTRA_OECONF} $KVMOPTS