summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 846dd7607854..da1707c3904b 100644
--- a/Makefile
+++ b/Makefile
@@ -350,12 +350,22 @@ AFLAGS_KERNEL =
350CFLAGS_GCOV = -fprofile-arcs -ftest-coverage 350CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
351 351
352 352
353# Use USERINCLUDE when you must reference the UAPI directories only.
354USERINCLUDE := \
355 -I$(srctree)/arch/$(hdr-arch)/include/uapi \
356 -Iarch/$(hdr-arch)/include/generated/uapi \
357 -I$(srctree)/include/uapi \
358 -Iinclude/generated/uapi \
359 -include $(srctree)/include/linux/kconfig.h
360
353# Use LINUXINCLUDE when you must reference the include/ directory. 361# Use LINUXINCLUDE when you must reference the include/ directory.
354# Needed to be compatible with the O= option 362# Needed to be compatible with the O= option
355LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \ 363LINUXINCLUDE := \
356 -Iarch/$(hdr-arch)/include/generated -Iinclude \ 364 -I$(srctree)/arch/$(hdr-arch)/include \
357 $(if $(KBUILD_SRC), -I$(srctree)/include) \ 365 -Iarch/$(hdr-arch)/include/generated \
358 -include $(srctree)/include/linux/kconfig.h 366 $(if $(KBUILD_SRC), -I$(srctree)/include) \
367 -Iinclude \
368 $(USERINCLUDE)
359 369
360KBUILD_CPPFLAGS := -D__KERNEL__ 370KBUILD_CPPFLAGS := -D__KERNEL__
361 371