Patchwork Add linux-headers to QEMU_INCLUDES

login
register
mail settings
Submitter Jan Kiszka
Date April 10, 2013, 8:29 a.m.
Message ID <516522FB.6090806@web.de>
Download mbox | patch
Permalink /patch/235335/
State New
Headers show

Comments

Jan Kiszka - April 10, 2013, 8:29 a.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

virtio/dataplane/vring.c requires the Linux headers and is built for all
targets. So we need to add the corresponding include to QEMU_INCLUDES to
avoid that outdated distribution headers are used.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 configure |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
Paolo Bonzini - April 10, 2013, 9:44 a.m.
Il 10/04/2013 10:29, Jan Kiszka ha scritto:
> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> virtio/dataplane/vring.c requires the Linux headers and is built for all
> targets. So we need to add the corresponding include to QEMU_INCLUDES to
> avoid that outdated distribution headers are used.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  configure |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/configure b/configure
> index 1ed939a..ee07f07 100755
> --- a/configure
> +++ b/configure
> @@ -544,6 +544,7 @@ Haiku)
>    if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
>      audio_possible_drivers="$audio_possible_drivers fmod"
>    fi
> +  QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers $QEMU_INCLUDES"
>  ;;
>  esac
>  
> @@ -4230,10 +4231,6 @@ else
>  fi
>  includes="-I\$(SRC_PATH)/tcg $includes"
>  
> -if test "$linux" = "yes" ; then
> -  includes="-I\$(SRC_PATH)/linux-headers $includes"
> -fi
> -
>  for i in $ARCH $TARGET_BASE_ARCH ; do
>    case "$i" in
>    alpha)
> 

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

Patch

diff --git a/configure b/configure
index 1ed939a..ee07f07 100755
--- a/configure
+++ b/configure
@@ -544,6 +544,7 @@  Haiku)
   if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
     audio_possible_drivers="$audio_possible_drivers fmod"
   fi
+  QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers $QEMU_INCLUDES"
 ;;
 esac
 
@@ -4230,10 +4231,6 @@  else
 fi
 includes="-I\$(SRC_PATH)/tcg $includes"
 
-if test "$linux" = "yes" ; then
-  includes="-I\$(SRC_PATH)/linux-headers $includes"
-fi
-
 for i in $ARCH $TARGET_BASE_ARCH ; do
   case "$i" in
   alpha)