]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - kernel/gen_kheaders.sh
kbuild: build init/built-in.a just once
[thirdparty/linux.git] / kernel / gen_kheaders.sh
index 0c78e64f747df590616a2e7a8da4d8a08c379b41..473036b43c832b2a94c8eef8edb9ef82c11b9a6c 100755 (executable)
@@ -31,8 +31,8 @@ if [ "$building_out_of_srctree" ]; then
 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.
+# include/generated/utsversion.h is ignored because it is generated after this
+# script is executed. (utsversion.h is unneeded for kheaders)
 #
 # When Kconfig regenerates include/generated/autoconf.h, its timestamp is
 # updated, but the contents might be still the same. When any CONFIG option is
@@ -42,7 +42,7 @@ all_dirs="$all_dirs $dir_list"
 #
 # 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/utsversion.h"        |
                grep -v "include/generated/autoconf.h"  |
                xargs ls -l | md5sum | cut -d ' ' -f1)"