diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-10-17 18:49:24 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2009-12-12 07:08:15 -0500 |
commit | 264a26838056fc2d759f58bec2e720e01fcb1bdb (patch) | |
tree | afeda8542af04721a9af57c8f40823d6315db411 /Makefile | |
parent | 98b8788ae91694499d1995035625bea16a4db0c4 (diff) |
kbuild: move autoconf.h to include/generated
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |
337 | LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \ | 337 | LINUXINCLUDE := -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 | ||
341 | KBUILD_CPPFLAGS := -D__KERNEL__ | 341 | KBUILD_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 |
494 | include/config/auto.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd | 494 | include/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 |
496 | else | 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 | # 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 |
499 | PHONY += include/config/auto.conf | 500 | PHONY += include/config/auto.conf |
500 | 501 | ||
501 | include/config/auto.conf: | 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 | 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' |
1150 | MRPROPER_DIRS += include/config usr/include include/generated | 1151 | MRPROPER_DIRS += include/config usr/include include/generated |
1151 | MRPROPER_FILES += .config .config.old .version .old_version \ | 1152 | MRPROPER_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 | ||