summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu.inc
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-12-14 16:35:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-15 14:36:21 +0000
commitbc13ebece233c8b1e000c4ad29e26f8298f6e055 (patch)
tree6b961f77ce89470115e666b39345287e95b1922e /meta/recipes-devtools/qemu/qemu.inc
parentb5c91531c87258aa3f9cff322aaf3c9d3f1ba506 (diff)
downloadpoky-bc13ebece233c8b1e000c4ad29e26f8298f6e055.tar.gz
qemu: for native, do not fail if kvm is unavailable
When building qemu-native, if the linux kvm header is unavailable (as it is on CentOS 5.x 32-bit) then do not pass the --enable-kvm switch to the configure script, thus avoiding failed do_configure. (From OE-Core rev: 8c21c71f005b601f58925e9912f2cf44127e291d) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 65bd8dcaad..bd86b4e9cf 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -12,7 +12,7 @@ SDL ?= "--disable-sdl"
12SDL_virtclass-native ?= "" 12SDL_virtclass-native ?= ""
13SDL_virtclass-nativesdk ?= "" 13SDL_virtclass-nativesdk ?= ""
14 14
15EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --enable-kvm --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370 ${SDL}" 15EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370 ${SDL}"
16 16
17#EXTRA_OECONF += "--disable-sdl" 17#EXTRA_OECONF += "--disable-sdl"
18 18
@@ -39,7 +39,13 @@ do_configure_prepend_virtclass-native() {
39} 39}
40 40
41do_configure() { 41do_configure() {
42 ${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --disable-strip ${EXTRA_OECONF} 42 # Handle distros such as CentOS 5 32-bit that do not have kvm support
43 KVMOPTS=""
44 if [ "${PN}" != "qemu-native" ] || [ -f /usr/include/linux/kvm.h ] ; then
45 KVMOPTS="--enable-kvm"
46 fi
47
48 ${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --disable-strip ${EXTRA_OECONF} $KVMOPTS
43 test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh 49 test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh
44} 50}
45 51