]> git.ipfire.org Git - thirdparty/linux.git/commit
kheaders: rebuild kheaders_data.tar.xz when KBUILD_BUILD_TIMESTAMP is changed
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 8 Jun 2025 16:59:56 +0000 (01:59 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 24 Jun 2025 11:30:37 +0000 (20:30 +0900)
commit1a0faff2833b59a74c8389bcdc390af99dc9d2cf
tree90428fa2d4ca9d974e1f51018148a7116d7c38e8
parent626c54af35764b0b8a4ed5c446458ba6ddfe9cc8
kheaders: rebuild kheaders_data.tar.xz when KBUILD_BUILD_TIMESTAMP is changed

This problem is similar to commit 7f8256ae0efb ("initramfs: Encode
dependency on KBUILD_BUILD_TIMESTAMP"): kernel/gen_kheaders.sh has an
internal dependency on KBUILD_BUILD_TIMESTAMP that is not exposed to
make, so changing KBUILD_BUILD_TIMESTAMP will not trigger a rebuild
of the archive.

Move $(KBUILD_BUILD_TIMESTAMP) to the Makefile so that is is recorded
in the *.cmd file.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
kernel/Makefile
kernel/gen_kheaders.sh