[Buildroot] [PATCH 5/5] package/dpdk: make apps selectable
Maxime Leroy
maxime at leroys.fr
Tue Oct 21 12:03:42 UTC 2025
Add BR2_PACKAGE_DPDK_APPS_LIST to control which DPDK applications are
built:
- empty : use DPDK defaults
- none : disable all apps (-Ddisable_apps='*')
- list : pass to -Denable_apps= (comma-separated)
Signed-off-by: Maxime Leroy <maxime at leroys.fr>
---
package/dpdk/Config.in | 14 ++++++++++++++
package/dpdk/dpdk.mk | 9 +++++++++
2 files changed, 23 insertions(+)
diff --git a/package/dpdk/Config.in b/package/dpdk/Config.in
index e311611548..feea71a4c3 100644
--- a/package/dpdk/Config.in
+++ b/package/dpdk/Config.in
@@ -78,6 +78,20 @@ config BR2_PACKAGE_DPDK_LIBS_LIST
find lib -mindepth 2 -maxdepth 2 -type f -name meson.build \
-printf '%h\n' | xargs -n1 basename | sort -u
+config BR2_PACKAGE_DPDK_APPS_LIST
+ string "Comma-separated applications (e.g. pdump,dumpcap)"
+ help
+ Controls which DPDK applications are built.
+
+ Values:
+ (empty): use DPDK defaults
+ none : build no apps
+ list : e.g. "pdump,dumpcap"
+
+ To list all applications found in the DPDK source tree:
+ find app -mindepth 2 -maxdepth 2 -type f -name meson.build \
+ -printf '%h\n' | xargs -n1 basename | sort -u
+
endif
comment "dpdk needs a glibc toolchain w/ threads, gcc >= 4.9, headers >= 4.19"
diff --git a/package/dpdk/dpdk.mk b/package/dpdk/dpdk.mk
index e54668ca2d..8bef616cb3 100644
--- a/package/dpdk/dpdk.mk
+++ b/package/dpdk/dpdk.mk
@@ -65,6 +65,15 @@ ifneq ($(DPDK_LIBS),)
endif
endif
+DPDK_APPS := $(call qstrip,$(BR2_PACKAGE_DPDK_APPS_LIST))
+ifneq ($(DPDK_APPS),)
+ ifeq ($(DPDK_APPS),none)
+ DPDK_CONF_OPTS += -Ddisable_apps='*'
+ else
+ DPDK_CONF_OPTS += -Denable_apps='$(DPDK_APPS)'
+ endif
+endif
+
ifeq ($(BR2_PACKAGE_DPDK_TESTS),y)
DPDK_CONF_OPTS += -Dtests=true
else
--
2.43.0
More information about the buildroot
mailing list