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>
Fri, 25 Apr 2025 15:07:45 +0000 (17:07 +0200)
commit199b971fe1d3b0c572a793bb303cb8ab36a8033a
tree2f388b2d639f6579f05da1684b632f6c6f63fee2
parent7c6b11529b0fdddd4671bae4cb9e3af7da8639a9
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