From 42608b107a1786ca3e7fc807be3f8b1280108d28 Mon Sep 17 00:00:00 2001 From: Naveen Saini Date: Tue, 7 Feb 2023 09:39:40 +0800 Subject: 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 Signed-off-by: Anuj Mittal --- .../clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb b/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb index 99c435d..7cd49a0 100644 --- a/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb +++ b/dynamic-layers/clang-layer/recipes-support/xdp-tools/xdp-tools_1.2.8.bb @@ -21,13 +21,11 @@ S = "${WORKDIR}/git" inherit pkgconfig -EXTRA_OEMAKE += "PREFIX=${D}${prefix} LIBDIR=${D}${libdir}" +EXTRA_OEMAKE += "PREFIX=${D}${prefix} LIBDIR=${D}${libdir} BUILD_STATIC_ONLY=1 PRODUCTION=1" -export STAGING_INCDIR +CFLAGS += "-fPIC" -do_configure:prepend () { - export DYNAMIC_LIBXDP=1 -} +export STAGING_INCDIR do_install () { oe_runmake install -- cgit v1.2.3-54-g00ecf