History

fixdep: remove unneeded code and comments about *.ver files

This is probably stale code. In old days (~ Linux 2.5.59), Kbuild made genksyms generate include/linux/modules/*.ver files. The currenct Kbuild does not generate *.ver files at all.

Masahiro Yamada committed 6 years ago

Commit 87d660f1 parent a83e4ca1 file · +1 −7Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/basic/fixdep.c+1−7
@@ -77,11 +77,6 @@ · 76 unmodified lines
77 * dependencies on include/config/my/option.h for every77 * dependencies on include/config/my/option.h for every
78 * CONFIG_MY_OPTION encountered in any of the prerequisites.78 * CONFIG_MY_OPTION encountered in any of the prerequisites.
79 *79 *
80 * It will also filter out all the dependencies on *.ver. We need
81 * to make sure that the generated version checksum are globally up
82 * to date before even starting the recursive build, so it's too late
83 * at this point anyway.
84 *
85 * We don't even try to really parse the header files, but80 * We don't even try to really parse the header files, but
86 * merely grep, i.e. if CONFIG_FOO is mentioned in a comment, it will81 * merely grep, i.e. if CONFIG_FOO is mentioned in a comment, it will
87 * be picked up as well. It's not a problem with respect to82 * be picked up as well. It's not a problem with respect to
@@ -299,8 +294,7 @@ static void *read_file(const char *filename) · 211 unmodified lines
299static int is_ignored_file(const char *s, int len)294static int is_ignored_file(const char *s, int len)
300{295{
301 return str_ends_with(s, len, "include/generated/autoconf.h") ||296 return str_ends_with(s, len, "include/generated/autoconf.h") ||
302 str_ends_with(s, len, "include/generated/autoksyms.h") ||297 str_ends_with(s, len, "include/generated/autoksyms.h");
303 str_ends_with(s, len, ".ver");
304}298}
305 299
306/*300/*