diff options
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 10 |
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" | |||
| 12 | SDL_virtclass-native ?= "" | 12 | SDL_virtclass-native ?= "" |
| 13 | SDL_virtclass-nativesdk ?= "" | 13 | SDL_virtclass-nativesdk ?= "" |
| 14 | 14 | ||
| 15 | EXTRA_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}" | 15 | EXTRA_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 | ||
| 41 | do_configure() { | 41 | do_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 | ||
