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>
Wed, 16 Jul 2025 07:13:16 +0000 (09:13 +0200)
commitceb194ea686c1a1d0db525eeb75da79a127b7c92
tree71c3a444a6652e50235571c401ff5196a062777a
parent5a20e5756511af23518f9263ff3103422fe8199f
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