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>
Fri, 25 Apr 2025 15:07:45 +0000 (17:07 +0200)
commitfc65b1777038b4284dc1278c702fa2dd32907096
tree7bac3657a5453786a9b8e2d4f54fb2b3123eb459
parente2033da4abbed27bed125f2ed97480ac7ea49cf2
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