public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix include paths when the kernel source and build directory are different
@ 2009-06-03 12:58 James Pike
  2009-06-08  8:31 ` Jan Kiszka
  2009-06-08  8:42 ` Avi Kivity
  0 siblings, 2 replies; 6+ messages in thread
From: James Pike @ 2009-06-03 12:58 UTC (permalink / raw)
  To: kvm

[-- Attachment #1: Type: text/plain, Size: 133 bytes --]

Use correct architecture includes when kernel source and build directory
are different.
Signed-off-by: James Pike <james@chilon.net>

[-- Attachment #2: kvm-kmod-86-build.patch --]
[-- Type: text/plain, Size: 708 bytes --]

diff --git a/Makefile b/Makefile
index 95e4c81..ad08c45 100644
--- a/Makefile
+++ b/Makefile
@@ -27,8 +27,9 @@ all:: prerequisite
 #	include header priority 1) $LINUX 2) $KERNELDIR 3) include-compat
 	$(MAKE) -C $(KERNELDIR) M=`pwd` \
 		LINUXINCLUDE="-I`pwd`/include -Iinclude \
-		$(if $(KERNELSOURCEDIR),-Iinclude2 -I$(KERNELSOURCEDIR)/include) \
-		-Iarch/${ARCH_DIR}/include -I`pwd`/include-compat \
+		$(if $(KERNELSOURCEDIR),\
+			-Iinclude2 -I$(KERNELSOURCEDIR)/include -I$(KERNELSOURCEDIR)/arch/${ARCH_DIR}/include, \
+			-Iarch/${ARCH_DIR}/include) -I`pwd`/include-compat \
 		-include include/linux/autoconf.h \
 		-include `pwd`/$(ARCH_DIR)/external-module-compat.h $(module_defines)" \
 		"$$@"

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

end of thread, other threads:[~2009-08-15 22:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-03 12:58 [PATCH] fix include paths when the kernel source and build directory are different James Pike
2009-06-08  8:31 ` Jan Kiszka
2009-06-08  8:42 ` Avi Kivity
2009-06-08  9:04   ` Jan Kiszka
2009-06-08  9:33     ` Avi Kivity
2009-08-15 22:33   ` James Pike

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