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>
Sat, 20 Dec 2025 09:15:48 +0000 (10:15 +0100)
commitde512a61f0ee86e98cc2a7f909cf0c706d9aad6d
treea92a7a2e1071a64ad99a98865d308af28baf6de2
parent03f1ac47b75c7e7b8b8d66fa4c5ce6a3852b3d6e
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