[meta-dpdk][PATCH 1/2] dpdk: add a PACKAGECONFIG for examples
Anuj Mittal <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
Building examples may not be always be required so allow their build to be controlled via a PACKAGECONFIG. Signed-off-by: Anuj Mittal <[email protected]> --- recipes-extended/dpdk/dpdk.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc index d59af8d..63f8191 100644 --- a/recipes-extended/dpdk/dpdk.inc +++ b/recipes-extended/dpdk/dpdk.inc @@ -17,14 +17,15 @@ def get_cpu_instruction_set(bb, d): else: return "core2" -EXTRA_OEMESON = " -Dexamples=all -Dcpu_instruction_set=${@get_cpu_instruction_set(bb, d)}" +EXTRA_OEMESON = " -Dcpu_instruction_set=${@get_cpu_instruction_set(bb, d)}" EXTRA_OEMESON:append:class-target = " --cross-file ${WORKDIR}/dpdk.cross" COMPATIBLE_HOST:libc-musl:class-target = "null" COMPATIBLE_HOST:linux-gnux32 = "null" -PACKAGECONFIG ??= " " +PACKAGECONFIG ??= "examples" PACKAGECONFIG[afxdp] = ",,libbpf xdp-tools" +PACKAGECONFIG[examples] = "-Dexamples=all, -Dexamples=," PACKAGECONFIG[libvirt] = ",,libvirt" PACKAGECONFIG[shared] = "--default-library=shared, --default-library=static," -- 2.53.0