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 | |
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>
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Documentation/kbuild/kconfig.txt | 3 | ||||
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | arch/m68k/kernel/head.S | 2 | ||||
-rw-r--r-- | scripts/basic/fixdep.c | 10 | ||||
-rw-r--r-- | scripts/kconfig/confdata.c | 2 | ||||
-rwxr-xr-x | scripts/mkcompile_h | 2 |
7 files changed, 16 insertions, 15 deletions
diff --git a/.gitignore b/.gitignore index c06b4c9aeb72..c6c19ea6ea96 100644 --- a/.gitignore +++ b/.gitignore | |||
@@ -46,7 +46,6 @@ Module.symvers | |||
46 | # Generated include files | 46 | # Generated include files |
47 | # | 47 | # |
48 | include/config | 48 | include/config |
49 | include/linux/autoconf.h | ||
50 | include/linux/version.h | 49 | include/linux/version.h |
51 | include/linux/utsrelease.h | 50 | include/linux/utsrelease.h |
52 | include/generated | 51 | include/generated |
diff --git a/Documentation/kbuild/kconfig.txt b/Documentation/kbuild/kconfig.txt index 849b5e56d06f..ab8dc3538988 100644 --- a/Documentation/kbuild/kconfig.txt +++ b/Documentation/kbuild/kconfig.txt | |||
@@ -106,7 +106,8 @@ This environment variable can be set to specify the path & name of the | |||
106 | KCONFIG_AUTOHEADER | 106 | KCONFIG_AUTOHEADER |
107 | -------------------------------------------------- | 107 | -------------------------------------------------- |
108 | This environment variable can be set to specify the path & name of the | 108 | This environment variable can be set to specify the path & name of the |
109 | "autoconf.h" (header) file. Its default value is "include/linux/autoconf.h". | 109 | "autoconf.h" (header) file. |
110 | Its default value is "include/generated/autoconf.h". | ||
110 | 111 | ||
111 | 112 | ||
112 | ====================================================================== | 113 | ====================================================================== |
@@ -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 | ||
diff --git a/arch/m68k/kernel/head.S b/arch/m68k/kernel/head.S index 86edb5fbcfc3..ef54128baa0b 100644 --- a/arch/m68k/kernel/head.S +++ b/arch/m68k/kernel/head.S | |||
@@ -196,7 +196,7 @@ | |||
196 | * for them and trying to understand what they mean. | 196 | * for them and trying to understand what they mean. |
197 | * | 197 | * |
198 | * CONFIG_xxx: These are the obvious machine configuration defines created | 198 | * CONFIG_xxx: These are the obvious machine configuration defines created |
199 | * during configuration. These are defined in include/linux/autoconf.h. | 199 | * during configuration. These are defined in autoconf.h. |
200 | * | 200 | * |
201 | * CONSOLE: There is support for head.S console in this file. This | 201 | * CONSOLE: There is support for head.S console in this file. This |
202 | * console can talk to a Mac frame buffer, but could easily be extrapolated | 202 | * console can talk to a Mac frame buffer, but could easily be extrapolated |
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 6bf21f83837d..ea26b23de082 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
@@ -16,15 +16,15 @@ | |||
16 | * tells make when to remake a file. | 16 | * tells make when to remake a file. |
17 | * | 17 | * |
18 | * To use this list as-is however has the drawback that virtually | 18 | * To use this list as-is however has the drawback that virtually |
19 | * every file in the kernel includes <linux/autoconf.h>. | 19 | * every file in the kernel includes autoconf.h. |
20 | * | 20 | * |
21 | * If the user re-runs make *config, linux/autoconf.h will be | 21 | * If the user re-runs make *config, autoconf.h will be |
22 | * regenerated. make notices that and will rebuild every file which | 22 | * regenerated. make notices that and will rebuild every file which |
23 | * includes autoconf.h, i.e. basically all files. This is extremely | 23 | * includes autoconf.h, i.e. basically all files. This is extremely |
24 | * annoying if the user just changed CONFIG_HIS_DRIVER from n to m. | 24 | * annoying if the user just changed CONFIG_HIS_DRIVER from n to m. |
25 | * | 25 | * |
26 | * So we play the same trick that "mkdep" played before. We replace | 26 | * So we play the same trick that "mkdep" played before. We replace |
27 | * the dependency on linux/autoconf.h by a dependency on every config | 27 | * the dependency on autoconf.h by a dependency on every config |
28 | * option which is mentioned in any of the listed prequisites. | 28 | * option which is mentioned in any of the listed prequisites. |
29 | * | 29 | * |
30 | * kconfig populates a tree in include/config/ with an empty file | 30 | * kconfig populates a tree in include/config/ with an empty file |
@@ -73,7 +73,7 @@ | |||
73 | * cmd_<target> = <cmdline> | 73 | * cmd_<target> = <cmdline> |
74 | * | 74 | * |
75 | * and then basically copies the .<target>.d file to stdout, in the | 75 | * and then basically copies the .<target>.d file to stdout, in the |
76 | * process filtering out the dependency on linux/autoconf.h and adding | 76 | * process filtering out the dependency on autoconf.h and adding |
77 | * dependencies on include/config/my/option.h for every | 77 | * dependencies on include/config/my/option.h for every |
78 | * CONFIG_MY_OPTION encountered in any of the prequisites. | 78 | * CONFIG_MY_OPTION encountered in any of the prequisites. |
79 | * | 79 | * |
@@ -324,7 +324,7 @@ static void parse_dep_file(void *map, size_t len) | |||
324 | p++; | 324 | p++; |
325 | } | 325 | } |
326 | memcpy(s, m, p-m); s[p-m] = 0; | 326 | memcpy(s, m, p-m); s[p-m] = 0; |
327 | if (strrcmp(s, "include/linux/autoconf.h") && | 327 | if (strrcmp(s, "include/generated/autoconf.h") && |
328 | strrcmp(s, "arch/um/include/uml-config.h") && | 328 | strrcmp(s, "arch/um/include/uml-config.h") && |
329 | strrcmp(s, ".ver")) { | 329 | strrcmp(s, ".ver")) { |
330 | printf(" %s \\\n", s); | 330 | printf(" %s \\\n", s); |
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index b55e72ff2fc6..797a7410f690 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
@@ -776,7 +776,7 @@ int conf_write_autoconf(void) | |||
776 | 776 | ||
777 | name = getenv("KCONFIG_AUTOHEADER"); | 777 | name = getenv("KCONFIG_AUTOHEADER"); |
778 | if (!name) | 778 | if (!name) |
779 | name = "include/linux/autoconf.h"; | 779 | name = "include/generated/autoconf.h"; |
780 | if (rename(".tmpconfig.h", name)) | 780 | if (rename(".tmpconfig.h", name)) |
781 | return 1; | 781 | return 1; |
782 | name = conf_get_autoconfig_name(); | 782 | name = conf_get_autoconfig_name(); |
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index bce3d0fe6fbd..23dbad80cce9 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h | |||
@@ -14,7 +14,7 @@ vecho() { [ "${quiet}" = "silent_" ] || echo "$@" ; } | |||
14 | # So "sudo make install" won't change the "compiled by <user>" | 14 | # So "sudo make install" won't change the "compiled by <user>" |
15 | # do "compiled by root" | 15 | # do "compiled by root" |
16 | 16 | ||
17 | if [ -r $TARGET -a ! -O include/linux/autoconf.h ]; then | 17 | if [ -r $TARGET -a ! -O include/generated/autoconf.h ]; then |
18 | vecho " SKIPPED $TARGET" | 18 | vecho " SKIPPED $TARGET" |
19 | exit 0 | 19 | exit 0 |
20 | fi | 20 | fi |