libbpf: Make libbpf_version.h non-auto-generated
Turn previously auto-generated libbpf_version.h header into a normal header file. This prevents various tricky Makefile integration issues, simplifies the overall build process, but also allows to further extend it with some more versioning-related APIs in the future. To prevent accidental out-of-sync versions as defined by libbpf.map and libbpf_version.h, Makefile checks their consistency at build time. Simultaneously with this change bump libbpf.map to v0.6. Also undo adding libbpf's output directory into include path for kernel/bpf/preload, bpftool, and resolve_btfids, which is not necessary because libbpf_version.h is just a normal header like any other. Fixes: 0b46b755 ("libbpf: Add LIBBPF_DEPRECATED_SINCE macro for scheduling API deprecations") Signed-off-by:Andrii Nakryiko <andrii@kernel.org> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210913222309.3220849-1-andrii@kernel.org
Showing
- kernel/bpf/preload/Makefile 2 additions, 5 deletionskernel/bpf/preload/Makefile
- tools/bpf/bpftool/Makefile 0 additions, 1 deletiontools/bpf/bpftool/Makefile
- tools/bpf/resolve_btfids/Makefile 0 additions, 1 deletiontools/bpf/resolve_btfids/Makefile
- tools/lib/bpf/.gitignore 0 additions, 1 deletiontools/lib/bpf/.gitignore
- tools/lib/bpf/Makefile 21 additions, 12 deletionstools/lib/bpf/Makefile
- tools/lib/bpf/libbpf.map 3 additions, 0 deletionstools/lib/bpf/libbpf.map
- tools/lib/bpf/libbpf_version.h 9 additions, 0 deletionstools/lib/bpf/libbpf_version.h
tools/lib/bpf/libbpf_version.h
0 → 100644
Please register or sign in to comment