All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qemu: fix out of tree cross compile
@ 2013-05-27  6:13 Alexey Kardashevskiy
  2013-05-27 10:24 ` Peter Maydell
  0 siblings, 1 reply; 13+ messages in thread
From: Alexey Kardashevskiy @ 2013-05-27  6:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alexey Kardashevskiy, qemu-trivial

QEMU uses headers from source directory, however the "asm" symlink was
created in the build directory what broke KVM stuff compilation.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 5ae7e4a..9c3c5e5 100755
--- a/configure
+++ b/configure
@@ -4135,7 +4135,7 @@ if test "$linux" = "yes" ; then
   esac
     # For non-KVM architectures we will not have asm headers
     if [ -e "$source_path/linux-headers/asm-$linux_arch" ]; then
-      symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
+      symlink "$source_path/linux-headers/asm-$linux_arch" $source_path/linux-headers/asm
     fi
 fi
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [Qemu-devel] [PATCH v3] qemu: fix out of tree cross compile
@ 2013-05-29 13:30 Alexey Kardashevskiy
  0 siblings, 0 replies; 13+ messages in thread
From: Alexey Kardashevskiy @ 2013-05-29 13:30 UTC (permalink / raw)
  To: Paolo Bonzini, Peter Maydell
  Cc: Alexey Kardashevskiy, qemu-trivial, qemu-devel

The symlink to "asm" platform linux headers is made in the build tree by
the configure script but gcc is not told to look for them there.

The patch fixes this.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---

Reposting it as a top level patch.

---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 5ae7e4a..eca2a20 100755
--- a/configure
+++ b/configure
@@ -547,7 +547,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"
+  QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers -I$(pwd)/linux-headers $QEMU_INCLUDES"
 ;;
 esac
 
-- 
1.7.10.4

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

end of thread, other threads:[~2013-05-29 13:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-27  6:13 [Qemu-devel] [PATCH] qemu: fix out of tree cross compile Alexey Kardashevskiy
2013-05-27 10:24 ` Peter Maydell
2013-05-27 14:11   ` Alexey Kardashevskiy
2013-05-27 14:12     ` Alexey Kardashevskiy
2013-05-27 15:02       ` Paolo Bonzini
2013-05-27 22:59         ` Alexey Kardashevskiy
2013-05-27 23:44           ` [Qemu-devel] [PATCH v2] " Alexey Kardashevskiy
2013-05-27 23:49             ` [Qemu-devel] [PATCH v3] " Alexey Kardashevskiy
2013-05-28  8:54               ` Paolo Bonzini
2013-05-28  9:12                 ` Andreas Färber
2013-05-28  9:21                   ` Paolo Bonzini
2013-05-29 13:17               ` Anthony Liguori
2013-05-29 13:30 Alexey Kardashevskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.