From 63f545b850ea4118a7e9e412aa8a22206dc7da8c Mon Sep 17 00:00:00 2001 From: Yao Zhao Date: Tue, 17 Jul 2012 20:44:46 -0400 Subject: qemu-nativesdk: fix the build failure that linux/kvm.h not found qemu.inc: on older kernel build hosts that have < 2.6.20 which doesn't support kvm yet, build will fail. Add a check in do_configure to make sure whether linux/kvm.h exists for nativesdk build. (From OE-Core rev: 7d49af3a811472a2a47453bef0813b89c6331ae7) Signed-off-by: Yao Zhao Signed-off-by: Richard Purdie --- meta/recipes-devtools/qemu/qemu.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meta/recipes-devtools/qemu/qemu.inc') diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index e618c1d6e1..f9368f3485 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc @@ -22,8 +22,9 @@ inherit autotools do_configure() { # Handle distros such as CentOS 5 32-bit that do not have kvm support KVMOPTS="--disable-kvm" - if [ "${PN}" != "qemu-native" ] || [ -f /usr/include/linux/kvm.h ] ; then - KVMOPTS="--enable-kvm" + if [ "${PN}" != "qemu-native" -a "${PN}" != "qemu-nativesdk" ] \ + || [ -f /usr/include/linux/kvm.h ] ; then + KVMOPTS="--enable-kvm" fi ${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --disable-strip ${EXTRA_OECONF} $KVMOPTS -- cgit v1.2.3-54-g00ecf