@@ -336,7 +336,7 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
336
336
# Needed to be compatible with the O= option
337
337
LINUXINCLUDE := -I$(srctree ) /arch/$(hdr-arch ) /include -Iinclude \
338
338
$(if $(KBUILD_SRC ) , -I$(srctree ) /include) \
339
- -include include/linux /autoconf.h
339
+ -include include/generated /autoconf.h
340
340
341
341
KBUILD_CPPFLAGS := -D__KERNEL__
342
342
@@ -492,17 +492,18 @@ $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;
492
492
# if auto.conf.cmd is missing then we are probably in a cleaned tree so
493
493
# we execute the config step to be sure to catch updated Kconfig files
494
494
include/config/auto.conf : $(KCONFIG_CONFIG ) include/config/auto.conf.cmd
495
+ $(Q ) mkdir -p include/generated
495
496
$(Q )$(MAKE ) -f $(srctree ) /Makefile silentoldconfig
496
497
else
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
499
# but do not care if they are up-to-date. Use auto.conf to trigger the test
499
500
PHONY += include/config/auto.conf
500
501
501
502
include/config/auto.conf :
502
- $(Q ) test -e include/linux /autoconf.h -a -e $@ || ( \
503
+ $(Q ) test -e include/generated /autoconf.h -a -e $@ || ( \
503
504
echo ; \
504
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
507
echo " Run 'make oldconfig && make prepare' on kernel src to fix it." ; \
507
508
echo ; \
508
509
/bin/false)
@@ -1149,7 +1150,7 @@ CLEAN_FILES += vmlinux System.map \
1149
1150
# Directories & files removed with 'make mrproper'
1150
1151
MRPROPER_DIRS += include/config usr/include include/generated
1151
1152
MRPROPER_FILES += .config .config.old .version .old_version \
1152
- include/linux/autoconf.h include/linux/ version.h \
1153
+ include/linux/version.h \
1153
1154
include/linux/utsrelease.h \
1154
1155
Module.symvers Module.markers tags TAGS cscope*
1155
1156
0 commit comments