[PATCH 05/40] UAPI: Add include/uapi/ directories to build [ver #3]

From: David Howells
Date: Thu Jul 28 2011 - 11:50:25 EST


Add include/uapi/ directories to build after the ordinary include directories
so that #include will pick up the UAPI header directly if the kernel header
has been moved there.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

Makefile | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index d018956..68834a5 100644
--- a/Makefile
+++ b/Makefile
@@ -357,8 +357,12 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage

# Use LINUXINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
-LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \
- -Iarch/$(hdr-arch)/include/generated -Iinclude \
+LINUXINCLUDE := \
+ -I$(srctree)/arch/$(hdr-arch)/include \
+ -Iarch/$(hdr-arch)/include/generated \
+ -I$(srctree)/arch/$(hdr-arch)/include/uapi \
+ -Iinclude \
+ -Iinclude/uapi \
$(if $(KBUILD_SRC), -I$(srctree)/include) \
-include include/generated/autoconf.h


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/