aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 86b66cf85ced..3bdd932e3d88 100644
--- a/Makefile
+++ b/Makefile
@@ -336,7 +336,7 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
336# Needed to be compatible with the O= option 336# Needed to be compatible with the O= option
337LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \ 337LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \
338 $(if $(KBUILD_SRC), -I$(srctree)/include) \ 338 $(if $(KBUILD_SRC), -I$(srctree)/include) \
339 -include include/linux/autoconf.h 339 -include include/generated/autoconf.h
340 340
341KBUILD_CPPFLAGS := -D__KERNEL__ 341KBUILD_CPPFLAGS := -D__KERNEL__
342 342
@@ -492,17 +492,18 @@ $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;
492# if auto.conf.cmd is missing then we are probably in a cleaned tree so 492# if auto.conf.cmd is missing then we are probably in a cleaned tree so
493# we execute the config step to be sure to catch updated Kconfig files 493# we execute the config step to be sure to catch updated Kconfig files
494include/config/auto.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd 494include/config/auto.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd
495 $(Q)mkdir -p include/generated
495 $(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig 496 $(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig
496else 497else
497# external modules needs include/linux/autoconf.h and include/config/auto.conf 498# external modules needs include/generated/autoconf.h and include/config/auto.conf
498# but do not care if they are up-to-date. Use auto.conf to trigger the test 499# but do not care if they are up-to-date. Use auto.conf to trigger the test
499PHONY += include/config/auto.conf 500PHONY += include/config/auto.conf
500 501
501include/config/auto.conf: 502include/config/auto.conf:
502 $(Q)test -e include/linux/autoconf.h -a -e $@ || ( \ 503 $(Q)test -e include/generated/autoconf.h -a -e $@ || ( \
503 echo; \ 504 echo; \
504 echo " ERROR: Kernel configuration is invalid."; \ 505 echo " ERROR: Kernel configuration is invalid."; \
505 echo " include/linux/autoconf.h or $@ are missing."; \ 506 echo " include/generated/autoconf.h or $@ are missing.";\
506 echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ 507 echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
507 echo; \ 508 echo; \
508 /bin/false) 509 /bin/false)
@@ -1149,7 +1150,7 @@ CLEAN_FILES += vmlinux System.map \
1149# Directories & files removed with 'make mrproper' 1150# Directories & files removed with 'make mrproper'
1150MRPROPER_DIRS += include/config usr/include include/generated 1151MRPROPER_DIRS += include/config usr/include include/generated
1151MRPROPER_FILES += .config .config.old .version .old_version \ 1152MRPROPER_FILES += .config .config.old .version .old_version \
1152 include/linux/autoconf.h include/linux/version.h \ 1153 include/linux/version.h \
1153 include/linux/utsrelease.h \ 1154 include/linux/utsrelease.h \
1154 Module.symvers Module.markers tags TAGS cscope* 1155 Module.symvers Module.markers tags TAGS cscope*
1155 1156