diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -350,12 +350,22 @@ AFLAGS_KERNEL = | |||
350 | CFLAGS_GCOV = -fprofile-arcs -ftest-coverage | 350 | CFLAGS_GCOV = -fprofile-arcs -ftest-coverage |
351 | 351 | ||
352 | 352 | ||
353 | # Use USERINCLUDE when you must reference the UAPI directories only. | ||
354 | USERINCLUDE := \ | ||
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 |
355 | LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \ | 363 | LINUXINCLUDE := \ |
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 | ||
360 | KBUILD_CPPFLAGS := -D__KERNEL__ | 370 | KBUILD_CPPFLAGS := -D__KERNEL__ |
361 | 371 | ||