Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] qemu-nativesdk: fix the build failure that linux/kvm.h not found
@ 2012-07-18  0:44 Yao Zhao
  2012-07-19  0:01 ` Saul Wold
  0 siblings, 1 reply; 2+ messages in thread
From: Yao Zhao @ 2012-07-18  0:44 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/recipes-devtools/qemu/qemu.inc |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 707493e..713674e 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
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] qemu-nativesdk: fix the build failure that linux/kvm.h not found
  2012-07-18  0:44 [PATCH] qemu-nativesdk: fix the build failure that linux/kvm.h not found Yao Zhao
@ 2012-07-19  0:01 ` Saul Wold
  0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2012-07-19  0:01 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 07/17/2012 05:44 PM, Yao Zhao wrote:
> 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>
> ---
>   meta/recipes-devtools/qemu/qemu.inc |    5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
> index 707493e..713674e 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
>
Merged into OE-Core

Thanks
	Sau!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-19  0:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18  0:44 [PATCH] qemu-nativesdk: fix the build failure that linux/kvm.h not found Yao Zhao
2012-07-19  0:01 ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox