diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-06-22 15:48:26 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-07-25 16:12:35 -0400 |
commit | 5e4786f75d885dd1a5f9fe12f3385ece7656b0c9 (patch) | |
tree | d1dbaffa5e7be90e8c6c00f7902ccb828f4f2c98 /Makefile | |
parent | 2e57d051160dd61776461637f767df19036b1186 (diff) |
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 <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -329,7 +329,8 @@ AFLAGS_KERNEL = | |||
329 | # Needed to be compatible with the O= option | 329 | # Needed to be compatible with the O= option |
330 | LINUXINCLUDE := -Iinclude \ | 330 | LINUXINCLUDE := -Iinclude \ |
331 | $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ | 331 | $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ |
332 | -include include/linux/autoconf.h | 332 | -I$(srctree)/arch/$(hdr-arch)/include \ |
333 | -include include/linux/autoconf.h | ||
333 | 334 | ||
334 | KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) | 335 | KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) |
335 | 336 | ||