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

* [Buildroot] [PATCH 2/2] package/dpdk: bump version to 26.11
  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 ` 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
  1 sibling, 0 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

Drop patch 0002, merged upstream with commit af4784e93cc5
("examples/vm_power_manager: fix includes").

Refresh patch 0010 and rename it to 0002. It no longer applies since
upstream commit 4a3fd57b96e1 ("build: fix cross-compilation to
x86-64") added lines in its context.

The tests meson option is deprecated and its value is ignored since
upstream commit 1e4f3cc31d3f ("build: deprecate standalone tests
option"). The unit tests are now the "test" application, which is
built by default, so use disable_apps to not build it when
BR2_PACKAGE_DPDK_TESTS is not set.

Remove the optional libbsd dependency, unused since upstream commit
f905ed803f6a ("build: drop dependency on libbsd").

See the release note of the new version:
https://doc.dpdk.org/guides-26.11/rel_notes/release_26_11.html

Signed-off-by: Maxime Leroy <maxime@leroys.fr>
---
Tested with test-pkg:
  BR2_PACKAGE_DPDK=y
  BR2_PACKAGE_DPDK_EXAMPLES=y
  BR2_PACKAGE_DPDK_TESTS=y
https://gitlab.com/maxime-leroy/buildroot/-/pipelines/3139138626

  BR2_PACKAGE_DPDK=y
  BR2_PACKAGE_GROUT=y
https://gitlab.com/maxime-leroy/buildroot/-/pipelines/3139138656

  BR2_PACKAGE_DPDK=y
  BR2_PACKAGE_DPDK_APPS_LIST="test-pmd"
  BR2_PACKAGE_DPDK_TESTS=y
https://gitlab.com/maxime-leroy/buildroot/-/pipelines/3139138422
(/usr/bin/dpdk-test is installed on bootlin-x86-64-glibc,
bootlin-aarch64-glibc and arm-aarch64)

Tested with the tests.package.test_dpdk runtime test:
https://gitlab.com/maxime-leroy/buildroot/-/pipelines/3139138777

 ...ild.patch => 0002-Fix-aarch64-build.patch} |  6 +--
 ...r_manager-add-missing-stdlib.h-heade.patch | 46 -------------------
 package/dpdk/dpdk.hash                        |  4 +-
 package/dpdk/dpdk.mk                          | 15 +++---
 4 files changed, 11 insertions(+), 60 deletions(-)
 rename package/dpdk/{0010-Fix-aarch64-build.patch => 0002-Fix-aarch64-build.patch} (94%)
 delete mode 100644 package/dpdk/0002-examples-vm_power_manager-add-missing-stdlib.h-heade.patch

diff --git a/package/dpdk/0010-Fix-aarch64-build.patch b/package/dpdk/0002-Fix-aarch64-build.patch
similarity index 94%
rename from package/dpdk/0010-Fix-aarch64-build.patch
rename to package/dpdk/0002-Fix-aarch64-build.patch
index 55c31c3647..96a9aea3cf 100644
--- a/package/dpdk/0010-Fix-aarch64-build.patch
+++ b/package/dpdk/0002-Fix-aarch64-build.patch
@@ -21,11 +21,11 @@ Links: cherry-picked from https://github.com/jolivain/dpdk/commit/c5ea091a74bbfa
  1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/config/meson.build b/config/meson.build
-index 8c8b019c25..ea48e55ce3 100644
+index a57ce88..4cf6179 100644
 --- a/config/meson.build
 +++ b/config/meson.build
-@@ -176,10 +176,10 @@ if not is_ms_compiler
-     else
+@@ -185,10 +185,10 @@ if not is_ms_compiler
+         endif
          machine_args += '-march=' + cpu_instruction_set
          # arm manages generic/auto config in config/arm/meson.build
 -        if cpu_instruction_set != 'generic' and cpu_instruction_set != 'auto'
diff --git a/package/dpdk/0002-examples-vm_power_manager-add-missing-stdlib.h-heade.patch b/package/dpdk/0002-examples-vm_power_manager-add-missing-stdlib.h-heade.patch
deleted file mode 100644
index 899842c2b2..0000000000
--- a/package/dpdk/0002-examples-vm_power_manager-add-missing-stdlib.h-heade.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 9f6c3191b3178294d698cdca859ce9dac78517ff Mon Sep 17 00:00:00 2001
-From: Guillaume Gardet <Guillaume.Gardet@arm.com>
-Date: Thu, 29 Aug 2024 16:33:19 +0200
-Subject: [PATCH] examples/vm_power_manager: add missing <stdlib.h> header
- include for strtol
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-strtol is defined in stdlib.h
-
-Fixes the following build failure:
-
-../examples/vm_power_manager/guest_cli/vm_power_cli_guest.c: In function ‘cmd_query_freq_list_parsed’:
-../examples/vm_power_manager/guest_cli/vm_power_cli_guest.c:208:42: error: implicit declaration of function ‘strtol’; did you mean ‘strtok’? [-Wimplicit-function-declaration]
-  208 |                 lcore_id = (unsigned int)strtol(res->cpu_num, &ep, 10);
-      |                                          ^~~~~~
-      |                                          strtok
-
-Fixes: 0e8f47491f090f44a4956429cb27f6942b6618b0 ("examples/vm_power: add command to query CPU frequency")
-Signed-off-by: Guillaume Gardet <guillaume.gardet@arm.com>
-[Thomas:
-- retrieve patch from
-https://build.opensuse.org/projects/openSUSE:42:Factory-Candidates-Check/packages/dpdk/files/0001-examples-vm_power_manager-add-missing-header.patch?expand=1
-- improve commit message]
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-Upstream: https://mails.dpdk.org/archives/dev/2026-August/344552.html
----
- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c
-index 4114593cee..63a59c8b10 100644
---- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c
-+++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c
-@@ -6,6 +6,7 @@
- #include <stdint.h>
- #include <string.h>
- #include <stdio.h>
-+#include <stdlib.h>
- #include <termios.h>
- 
- #include <cmdline_rdline.h>
--- 
-2.55.0
-
diff --git a/package/dpdk/dpdk.hash b/package/dpdk/dpdk.hash
index f5197a7c51..acff0b8c93 100644
--- a/package/dpdk/dpdk.hash
+++ b/package/dpdk/dpdk.hash
@@ -1,6 +1,6 @@
 # Locally computed
-sha256  50272f214b2e7fd23dc9b6b4d5408b54798021b19611339298784faa5a189b43  dpdk-25.11.4.tar.xz
+sha256  392b7be5d830ecd6842ce12f5dbd530f8211c20efebc65e7992dfe15ee32ed33  dpdk-26.11.tar.xz
 sha256  9acc4bc871a4742550158e3696dcb381953172ef808d04ca248184f9f6322712  license/bsd-3-clause.txt
 sha256  ec514554f1b9e90c4f55167267c22da9d511f884877c32a5b18bee6b7c8b18cd  license/exceptions.txt
 sha256  6c54c4d44faf3cba829b3d0c21c6955953e758767018fd7244f809b01d4f4845  license/mit.txt
-sha256  cae178052c96959741acb7f00634a09a8294e6cafb5ad53e158d63e3510875ab  license/README
+sha256  dd16842cdab192db24004026574910b163e0315cbc0aabc5853080867142e912  license/README
diff --git a/package/dpdk/dpdk.mk b/package/dpdk/dpdk.mk
index 534109f4e9..55a8686885 100644
--- a/package/dpdk/dpdk.mk
+++ b/package/dpdk/dpdk.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-DPDK_VERSION = 25.11.4
+DPDK_VERSION = 26.11
 DPDK_SOURCE = dpdk-$(DPDK_VERSION).tar.xz
 DPDK_SITE = https://fast.dpdk.org/rel
 DPDK_LICENSE = \
@@ -74,14 +74,11 @@ ifneq ($(DPDK_APPS),)
   endif
 endif
 
-ifeq ($(BR2_PACKAGE_DPDK_TESTS),y)
-DPDK_CONF_OPTS += -Dtests=true
-else
-DPDK_CONF_OPTS += -Dtests=false
-endif
-
-ifeq ($(BR2_PACKAGE_LIBBSD),y)
-DPDK_DEPENDENCIES += libbsd
+# The unit tests are built as the "test" application
+ifneq ($(BR2_PACKAGE_DPDK_TESTS),y)
+  ifneq ($(DPDK_APPS),none)
+    DPDK_CONF_OPTS += -Ddisable_apps='test'
+  endif
 endif
 
 ifeq ($(BR2_PACKAGE_JANSSON),y)
-- 
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

* Re: [Buildroot] [PATCH 1/2] package/dpdk: build the unit tests when an application list is given
  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 ` Julien Olivain via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Julien Olivain via buildroot @ 2026-12-02 20:48 UTC (permalink / raw)
  To: Maxime Leroy; +Cc: buildroot, Thomas Perale, Vincent Jardin

On 01/12/2026 21:01, Maxime Leroy wrote:
> 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>

Series applied to next, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[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