libbpf: minor packaging fixes
Subsystems (4)
cover libbpf: minor packaging fixes
The DPDK project is moving forward with its AF_XDP PMD, and during that process some libbpf issues surfaced [1].
This series address two, minor, packaging issues for libbpf. The header file xsk.h was missing from the instal_headers target and libelf was not included in the libbpf.so (shared library) build.
Thanks,
Björn
[1] https://patches.dpdk.org/patch/50704/#93571
Björn Töpel (2):
libbpf: add xsk.h to install_headers target
libbpf: add libelf dependency to shared library build
tools/lib/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.19.1
PATCH 1/2 libbpf: add xsk.h to install_headers target
From: Björn Töpel <[email protected]>
The xsk.h header file was missing from the insteall_headers target in the Makefile. This patch simply adds xsk.h to the set of installed headers.
--- tools/lib/bpf/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/lib/bpf/Makefile +1 -0
@@ -222,6 +222,7 @@ install_headers: $(call do_install,bpf.h,$(prefix)/include/bpf,644); \ $(call do_install,libbpf.h,$(prefix)/include/bpf,644); $(call do_install,btf.h,$(prefix)/include/bpf,644); + $(call do_install,xsk.h,$(prefix)/include/bpf,644); install: install_lib
Signature · 1 line
2.19.1
PATCH 2/2 libbpf: add libelf dependency to shared library build
In reply to Björn TöpelFrom: Björn Töpel <[email protected]>
When libbpf was built was a shared library, libelf was not included in the linking phase. Since libelf is an internal depedency to libbpf, libeld should be included. This patch adds '-lelf' to resolve that.
--- tools/lib/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/Makefile +1 -1
@@ -177,7 +177,7 @@ $(OUTPUT)libbpf.so: $(OUTPUT)libbpf.so.$(LIBBPF_VERSION) $(OUTPUT)libbpf.so.$(LIBBPF_VERSION): $(BPF_IN) $(QUIET_LINK)$(CC) --shared -Wl,-soname,libbpf.so.$(VERSION) \ - -Wl,--version-script=$(VERSION_SCRIPT) $^ -o $@ + -Wl,--version-script=$(VERSION_SCRIPT) $^ -lelf -o $@ @ln -sf $(@F) $(OUTPUT)libbpf.so @ln -sf $(@F) $(OUTPUT)libbpf.so.$(VERSION)
Signature · 1 line
2.19.1
Daniel Borkmann
maintainerQuoted 2 lines · Björn Töpel
The DPDK project is moving forward with its
AF_XDPPMD, and during that process some libbpf issues surfaced [1].
Great to hear!
Quoted 8 lines
This series address two, minor, packaging issues for libbpf. The header file
xsk.hwas missing from theinstal_headerstarget and libelf was not included in the libbpf.so (shared library) build.Thanks,
Björn
Quoted 9 lines
[1] https://patches.dpdk.org/patch/50704/#93571
Björn Töpel (2):
libbpf: addxsk.htoinstall_headerstarget
libbpf: add libelf dependency to shared library buildtools/lib/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Looks good, applied, thanks (also fixed up various typos in the commit message while applying).
Quoted 21 lines · Daniel Borkmann
Quoted 2 lines · Björn Töpel
The DPDK project is moving forward with its
AF_XDPPMD, and during that process some libbpf issues surfaced [1].Great to hear!
Quoted 14 lines
This series address two, minor, packaging issues for libbpf. The header file
xsk.hwas missing from theinstal_headerstarget and libelf was not included in the libbpf.so (shared library) build.Thanks,
Björn[1] https://patches.dpdk.org/patch/50704/#93571
Björn Töpel (2):
libbpf: addxsk.htoinstall_headerstarget
libbpf: add libelf dependency to shared library build
Quoted 6 lines
Quoted 3 lines
tools/lib/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Looks good, applied, thanks (also fixed up various typos in the commit message while applying).
Thank you for fixing the typos!