Commit Graph

3 Commits

Author SHA1 Message Date
Naveen Saini
2338f2d5e7 xdp-tools: build static library
The problem with shared library is that generated object files are also
required additionally by libxdp. So build the static library instead of
installing .o files as well (which would need us to disable stripping
etc.)

Error log while building libxdp:
| libxdp: Couldn't find a BPF file with name xsk_def_xdp_prog.o
| xsk_configure(): Failed to create xsk socket

Enable production option too. Also see:

https://github.com/xdp-project/xdp-tools/issues/180

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-02-07 11:35:11 +08:00
Anuj Mittal
5471129ec3 xdp-tools: fix multilib build
The project sets libdir path to /usr/lib [1] which is not always
correct and results in failures when $libdir, as an example, is
/usr/lib64. Set the correct value of LIBDIR.

[1] https://github.com/xdp-project/xdp-tools/blob/v1.2/lib/defines.mk#L11

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-01-31 21:57:52 +08:00
Naveen Saini
bec785b53a xdp-tools: add recipe
xdp-tools - Library and utilities for use with XDP.

It also provides libxdp library.

https://github.com/xdp-project/xdp-tools

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-01-31 15:21:21 +08:00