kbuild, bpf: Fix BTF reproducibility
authorBen Hutchings <benh@debian.org>
Sun, 15 Sep 2024 23:54:24 +0000 (01:54 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 6 May 2025 19:33:52 +0000 (21:33 +0200)
commitd3dd70f9bab04e3f78f40400d66b6d47fc555089
tree6809f0350abc9df3461c3339d802f832b7aa4939
parente13cf773309b6c0f0b9340de14654d33b6e3acd2
kbuild, bpf: Fix BTF reproducibility

pahole 1.22 introduced the -j option for parallel processing, and
kbuild uses it, but this makes its output unreproducible.

pahole 1.27 introduced --btf_features=+reproducible_build which makes
the output reproducible even when -j is used.

Assume that if KBUILD_BUILD_TIMESTAMP is set then a reproducible build
is required, and use both options if available or neither if not.

Signed-off-by: Ben Hutchings <benh@debian.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name kbuild-bpf-fix-btf-reproducibility.patch
scripts/Makefile.btf