libbpf: Use the standard fixdep build rule
authorBen Hutchings <benh@debian.org>
Sun, 20 Apr 2025 16:50:44 +0000 (18:50 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 12 Aug 2025 03:28:04 +0000 (05:28 +0200)
commit1e7353230fc153b2a97bb9816e3bfe4cf5cc9a47
tree465aa0a22ea6d40edd45aa7c843cd51cea4c2cbf
parentf7225430dd2ed2992a7a9a1e1f36413fce53ff9f
libbpf: Use the standard fixdep build rule

libbpf's all target depends on the fixdep target defined in
tools/scripts/Makefile.include.  However the $(BPF_IN_SHARED) and
$(BPF_IN_STATIC) targets don't use it, but instead rebuild fixdep in
the staticobjs or sharedobjs subdirectory using a different command.

Change the $(BPF_IN_SHARED) and $(BPF_IN_STATIC) targets to depend on
fixdep and to symlink the executable into the respective output
subdirectory.

Signed-off-by: Ben Hutchings <benh@debian.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name libbpf-use-the-standard-fixdep-build-rule.patch
tools/lib/bpf/Makefile