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) (From OE-Core rev: 44d9e208c97ec1e3c5ba0a8dc6c10cef12dc270d) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
de7377a170
commit
d97ad36d90
|
@ -12,7 +12,7 @@ SDL ?= "--disable-sdl"
|
|||
SDL_virtclass-native ?= ""
|
||||
SDL_virtclass-nativesdk ?= ""
|
||||
|
||||
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}"
|
||||
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}"
|
||||
|
||||
#EXTRA_OECONF += "--disable-sdl"
|
||||
|
||||
|
@ -39,7 +39,13 @@ do_configure_prepend_virtclass-native() {
|
|||
}
|
||||
|
||||
do_configure() {
|
||||
${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --disable-strip ${EXTRA_OECONF}
|
||||
# Handle distros such as CentOS 5 32-bit that do not have kvm support
|
||||
KVMOPTS=""
|
||||
if [ "${PN}" != "qemu-native" ] || [ -f /usr/include/linux/kvm.h ] ; then
|
||||
KVMOPTS="--enable-kvm"
|
||||
fi
|
||||
|
||||
${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --disable-strip ${EXTRA_OECONF} $KVMOPTS
|
||||
test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ require qemu.inc
|
|||
LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
|
||||
file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913"
|
||||
|
||||
PR = "r3"
|
||||
PR = "r4"
|
||||
|
||||
FILESPATH = "${FILE_DIRNAME}/qemu-${PV}"
|
||||
FILESDIR = "${WORKDIR}"
|
||||
|
|
|
@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
|
|||
file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913"
|
||||
|
||||
PV = "0.14.0"
|
||||
PR = "r1"
|
||||
PR = "r2"
|
||||
|
||||
FILESPATH = "${FILE_DIRNAME}/qemu-${PV}/:${FILE_DIRNAME}/qemu-git/"
|
||||
FILESDIR = "${WORKDIR}"
|
||||
|
|
Loading…
Reference in New Issue