aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYao Zhao <yao.zhao@windriver.com>2012-07-17 20:44:46 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-18 14:58:46 +0100
commit7d49af3a811472a2a47453bef0813b89c6331ae7 (patch)
treead24fba649d9982ab56d8404e0b0c4fd1d55fb7f
parent47e6ab41f0f84e6bed7d337ebf96c954ec6909e8 (diff)
downloadopenembedded-core-contrib-7d49af3a811472a2a47453bef0813b89c6331ae7.tar.gz
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. Signed-off-by: Yao Zhao <yao.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index e618c1d6e11..f9368f34856 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