summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/qemu
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-14 16:56:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-15 08:46:41 +0100
commit0bbafc1e0250bc4df6c6fcc749ab9bbbd7de4a89 (patch)
treee047775b062e27a1fa28b52e00909bc098003563 /meta/recipes-devtools/qemu
parent67c8f70e84ac25adb5ea54dbde83d2377a994f97 (diff)
downloadopenembedded-core-0bbafc1e0250bc4df6c6fcc749ab9bbbd7de4a89.tar.gz
openembedded-core-0bbafc1e0250bc4df6c6fcc749ab9bbbd7de4a89.tar.bz2
openembedded-core-0bbafc1e0250bc4df6c6fcc749ab9bbbd7de4a89.zip
qemu: Overwrite KVM explicitly for darwin/mingw
Force KVM to disabled on mingw/darwin systems since this makes no sense there. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu')
-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() {
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