linux/tools/bpf/resolve_btfids
Quentin Monnet 1478994aad tools/resolve_btfids: Install libbpf headers when building
API headers from libbpf should not be accessed directly from the
library's source directory. Instead, they should be exported with "make
install_headers". Let's make sure that resolve_btfids installs the
headers properly when building.

When descending from a parent Makefile, the specific output directories
for building the library and exporting the headers are configurable with
LIBBPF_OUT and LIBBPF_DESTDIR, respectively. This is in addition to
OUTPUT, on top of which those variables are constructed by default.

Also adjust the Makefile for the BPF selftests in order to point to the
(target) libbpf shared with other tools, instead of building a version
specific to resolve_btfids. Remove libbpf's order-only dependencies on
the include directories (they are created by libbpf and don't need to
exist beforehand).

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211007194438.34443-5-quentin@isovalent.com
2021-10-08 11:54:11 -07:00
..
.gitignore tools/resolve_btfids: Add /libbpf to .gitignore 2021-02-12 13:08:26 -08:00
Build bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object 2020-07-13 10:42:02 -07:00
main.c tools/resolve_btfids: Install libbpf headers when building 2021-10-08 11:54:11 -07:00
Makefile tools/resolve_btfids: Install libbpf headers when building 2021-10-08 11:54:11 -07:00