[meta-dpdk][PATCH 2/4] dpdk: add PACKAGECONFIG to build shared libraries

Anuj Mittal <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <[email protected]>
By default, DPDK performs static linking for applications and examples
[1]. This behaviour can cause the build directory to exceed 100 GiB.

Provide a PACKAGECONFIG to allow building with shared libraries only.

[1] dpdk commit 93b1f90ae174 ("build: change default library type to
static")

Signed-off-by: Anuj Mittal <[email protected]>
---
 recipes-extended/dpdk/dpdk.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 0a947fc..d59af8d 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -26,6 +26,7 @@ COMPATIBLE_HOST:linux-gnux32 = "null"
 PACKAGECONFIG ??= " "
 PACKAGECONFIG[afxdp] = ",,libbpf xdp-tools"
 PACKAGECONFIG[libvirt] = ",,libvirt"
+PACKAGECONFIG[shared]  = "--default-library=shared, --default-library=static,"
 
 RDEPENDS:${PN} += "pciutils python3-core"
 RDEPENDS:${PN}-examples += "bash"
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.