History

kbuild: move autoconf.h to include/generated

Sam Ravnborg committed 17 years ago

Commit 264a2681 parent 98b87887 files · +16 −15Browse files

Showing the changes to scripts/basic (1 of 7 files). Show all

Unified · Split

scripts/basic/fixdep.c+5−5
@@ -16,15 +16,15 @@ · 15 unmodified lines
1616 * tells make when to remake a file.
1717 *
1818 * 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.
2020 *
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
2222 * regenerated. make notices that and will rebuild every file which
2323 * includes autoconf.h, i.e. basically all files. This is extremely
2424 * annoying if the user just changed CONFIG_HIS_DRIVER from n to m.
2525 *
2626 * 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
2828 * option which is mentioned in any of the listed prequisites.
2929 *
3030 * kconfig populates a tree in include/config/ with an empty file
@@ -73,7 +73,7 @@ · 42 unmodified lines
7373 * cmd_<target> = <cmdline>
7474 *
7575 * 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
7777 * dependencies on include/config/my/option.h for every
7878 * CONFIG_MY_OPTION encountered in any of the prequisites.
7979 *
@@ -324,7 +324,7 @@ static void parse_dep_file(void *map, size_t len) · 244 unmodified lines
324324 p++;
325325 }
326326 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") &&
328328 strrcmp(s, "arch/um/include/uml-config.h") &&
329329 strrcmp(s, ".ver")) {
330330 printf(" %s \\\n", s);