kbuild, bpf: Fix BTF reproducibility
authorBen Hutchings <benh@debian.org>
Sun, 15 Sep 2024 23:54:24 +0000 (01:54 +0200)
committerBen Hutchings <benh@debian.org>
Sat, 5 Oct 2024 23:00:02 +0000 (01:00 +0200)
commitfebb6e2f8cb6928ed92ae2511aa46fd1ed30f163
tree039336b18540dfd49ce213ac0c1f96838ee5d26b
parentfb56b44f70d617ca84bcd4214280117638318ff7
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