* [PATCH] qemu: Overwrite KVM explicitly for darwin/mingw
@ 2014-08-14 15:56 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-08-14 15:56 UTC (permalink / raw)
To: openembedded-core
Force KVM to disabled on mingw/darwin systems since this makes no
sense there.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-14 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 15:56 [PATCH] qemu: Overwrite KVM explicitly for darwin/mingw Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox