From: Sam Ravnborg Date: Sun, 22 Jun 2008 19:48:26 +0000 (+0200) Subject: kbuild: add arch/$ARCH/include to search path X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5e4786f75d885dd1a5f9fe12f3385ece7656b0c9;p=openwrt%2Fstaging%2Fblogic.git kbuild: add arch/$ARCH/include to search path This patch conclude the support for arch/$ARCH/include Note: The individual architectures will most likely require a few minor patches to support locating header files in arch/$ARCH/include Testing shows that it worked out-of-the-box for sparc. x86 required a few trivial changes in the arch specific Makefile and a few include paths had to be adjusted. Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index f6fcad704d23..828c838e025d 100644 --- a/Makefile +++ b/Makefile @@ -329,7 +329,8 @@ AFLAGS_KERNEL = # Needed to be compatible with the O= option LINUXINCLUDE := -Iinclude \ $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ - -include include/linux/autoconf.h + -I$(srctree)/arch/$(hdr-arch)/include \ + -include include/linux/autoconf.h KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)