diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-10-08 21:05:56 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-11-11 20:10:01 +0900 |
commit | f276031b4e2f4c961ed6d8a42f0f0124ccac2e09 (patch) | |
tree | 093c97a2c6a81682813e46473477596762f41a9e /kernel | |
parent | 1463f74f492eea7191f0178e01f3d38371a48210 (diff) | |
download | linux-f276031b4e2f4c961ed6d8a42f0f0124ccac2e09.tar.gz linux-f276031b4e2f4c961ed6d8a42f0f0124ccac2e09.tar.bz2 linux-f276031b4e2f4c961ed6d8a42f0f0124ccac2e09.zip |
kheaders: explain why include/config/autoconf.h is excluded from md5sum
This comment block explains why include/generated/compile.h is omitted,
but nothing about include/generated/autoconf.h, which might be more
difficult to understand. Add more comments.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'kernel')
-rwxr-xr-x | kernel/gen_kheaders.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh index dc5744b93f8c..e13ca842eb7e 100755 --- a/kernel/gen_kheaders.sh +++ b/kernel/gen_kheaders.sh @@ -32,8 +32,15 @@ fi all_dirs="$all_dirs $dir_list" # include/generated/compile.h is ignored because it is touched even when none -# of the source files changed. This causes pointless regeneration, so let us -# ignore them for md5 calculation. +# of the source files changed. +# +# When Kconfig regenerates include/generated/autoconf.h, its timestamp is +# updated, but the contents might be still the same. When any CONFIG option is +# changed, Kconfig touches the corresponding timestamp file include/config/*.h. +# Hence, the md5sum detects the configuration change anyway. We do not need to +# check include/generated/autoconf.h explicitly. +# +# Ignore them for md5 calculation to avoid pointless regeneration. headers_md5="$(find $all_dirs -name "*.h" | grep -v "include/generated/compile.h" | grep -v "include/generated/autoconf.h" | |