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, 12 Aug 2025 03:28:04 +0000 (05:28 +0200)
commit81637a7f7dbf7ceadda627b9b15f875fa40a4d0d
treedd8431c4d4eb8706f9999e326f12e30d013fc632
parent4ba0cac139d1d4d99bc8c884a05ec84ea1446170
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