mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 19:39:40 +01:00
qemu: Overwrite KVM explicitly for darwin/mingw
Force KVM to disabled on mingw/darwin systems since this makes no sense there. (From OE-Core rev: 0bbafc1e0250bc4df6c6fcc749ab9bbbd7de4a89) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user