Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/dpdk: build the unit tests when an application list is given
@ 2026-12-01 20:01 Maxime Leroy
  2026-12-01 20:01 ` [Buildroot] [PATCH 2/2] package/dpdk: bump version to 26.11 Maxime Leroy
  2026-12-02 20:48 ` [Buildroot] [PATCH 1/2] package/dpdk: build the unit tests when an application list is given Julien Olivain via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Maxime Leroy @ 2026-12-01 20:01 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Perale, Vincent Jardin, Maxime Leroy

When BR2_PACKAGE_DPDK_APPS_LIST contains a list of applications, it is
passed to DPDK as enable_apps, and only these applications are built.
The unit tests are the "test" application, so they are not built even
when BR2_PACKAGE_DPDK_TESTS is enabled, unless "test" is also in the
list.

Add "test" to enable_apps when BR2_PACKAGE_DPDK_TESTS is enabled. A
duplicate "test" entry is harmless, enable_apps is only used to check
whether an application is in the list.

Fixes: 49e7a554f281 ("package/dpdk: make apps selectable")
Signed-off-by: Maxime Leroy <maxime@leroys.fr>
---
Tested with test-pkg:
  BR2_PACKAGE_DPDK=y
  BR2_PACKAGE_DPDK_APPS_LIST="test-pmd"
  BR2_PACKAGE_DPDK_TESTS=y

without this patch: https://gitlab.com/maxime-leroy/buildroot/-/pipelines/3139129695
with this patch:    https://gitlab.com/maxime-leroy/buildroot/-/pipelines/3139138274

On bootlin-x86-64-glibc, bootlin-aarch64-glibc and arm-aarch64,
packages-file-list.txt shows that /usr/bin/dpdk-test is only installed
with this patch.

 package/dpdk/dpdk.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/dpdk/dpdk.mk b/package/dpdk/dpdk.mk
index e624eab62f..534109f4e9 100644
--- a/package/dpdk/dpdk.mk
+++ b/package/dpdk/dpdk.mk
@@ -70,7 +70,7 @@ ifneq ($(DPDK_APPS),)
   ifeq ($(DPDK_APPS),none)
     DPDK_CONF_OPTS += -Ddisable_apps='*'
   else
-    DPDK_CONF_OPTS += -Denable_apps='$(DPDK_APPS)'
+    DPDK_CONF_OPTS += -Denable_apps='$(DPDK_APPS)$(if $(BR2_PACKAGE_DPDK_TESTS),$(comma)test)'
   endif
 endif
 
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-02 20:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 20:01 [Buildroot] [PATCH 1/2] package/dpdk: build the unit tests when an application list is given Maxime Leroy
2026-12-01 20:01 ` [Buildroot] [PATCH 2/2] package/dpdk: bump version to 26.11 Maxime Leroy
2026-12-02 20:48 ` [Buildroot] [PATCH 1/2] package/dpdk: build the unit tests when an application list is given Julien Olivain via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox