From: Maxime Leroy <maxime@leroys.fr>
To: buildroot@buildroot.org
Cc: Julien Olivain <ju.o@free.fr>, Vincent Jardin <vjardin@free.fr>,
Maxime Leroy <maxime@leroys.fr>
Subject: [Buildroot] [PATCH 2/3] package/dpdk: add option to disable target installation
Date: Mon, 13 Apr 2026 17:11:47 +0200 [thread overview]
Message-ID: <20260413151148.42226-3-maxime@leroys.fr> (raw)
In-Reply-To: <20260413151148.42226-1-maxime@leroys.fr>
Introduce BR2_PACKAGE_DPDK_INSTALL_TARGET (default y) to control
whether DPDK is installed on the target. When disabled, DPDK is
kept in staging only for build-time use.
This is useful when DPDK is only needed to build applications and
is not required at runtime on the target, e.g. when an application
is linked statically against the DPDK libraries (such as grout).
Signed-off-by: Maxime Leroy <maxime@leroys.fr>
---
package/dpdk/Config.in | 13 +++++++++++++
package/dpdk/dpdk.mk | 6 ++++++
2 files changed, 19 insertions(+)
diff --git a/package/dpdk/Config.in b/package/dpdk/Config.in
index b658145e5b..69c5edf634 100644
--- a/package/dpdk/Config.in
+++ b/package/dpdk/Config.in
@@ -37,11 +37,24 @@ config BR2_PACKAGE_DPDK
if BR2_PACKAGE_DPDK
+config BR2_PACKAGE_DPDK_INSTALL_TARGET
+ bool "install DPDK on target"
+ default y
+ help
+ Say y if you want DPDK libraries and tools installed on the
+ target root filesystem (e.g. /usr/lib, /usr/bin).
+
+ Say n if DPDK is only used as a build-time dependency from
+ the staging directory (e.g. for static linking), and you do
+ not want any DPDK files on the final image.
+
config BR2_PACKAGE_DPDK_EXAMPLES
bool "Install examples"
+ depends on BR2_PACKAGE_DPDK_INSTALL_TARGET
config BR2_PACKAGE_DPDK_TESTS
bool "Install tests"
+ depends on BR2_PACKAGE_DPDK_INSTALL_TARGET
config BR2_PACKAGE_DPDK_DRIVERS_LIST
string "List of enabled drivers"
diff --git a/package/dpdk/dpdk.mk b/package/dpdk/dpdk.mk
index 080f924329..2f744e519f 100644
--- a/package/dpdk/dpdk.mk
+++ b/package/dpdk/dpdk.mk
@@ -74,6 +74,12 @@ ifneq ($(DPDK_APPS),)
endif
endif
+ifeq ($(BR2_PACKAGE_DPDK_INSTALL_TARGET),y)
+DPDK_INSTALL_TARGET = YES
+else
+DPDK_INSTALL_TARGET = NO
+endif
+
ifeq ($(BR2_PACKAGE_DPDK_TESTS),y)
DPDK_CONF_OPTS += -Dtests=true
else
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-04-13 15:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-13 15:11 [Buildroot] [PATCH 0/3] Bump libecoli and grout; DPDK packaging improvement Maxime Leroy
2026-04-13 15:11 ` [Buildroot] [PATCH 1/3] package/libecoli: bump version to 0.11.3 Maxime Leroy
2026-04-14 10:30 ` Vincent Jardin via buildroot
2026-07-13 10:23 ` Julien Olivain via buildroot
2026-04-13 15:11 ` Maxime Leroy [this message]
2026-04-14 10:36 ` [Buildroot] [PATCH 2/3] package/dpdk: add option to disable target installation Vincent Jardin via buildroot
2026-04-13 15:11 ` [Buildroot] [PATCH 3/3] package/grout: bump version to 0.15.0 Maxime Leroy
2026-04-14 10:32 ` Vincent Jardin via buildroot
2026-04-14 10:38 ` [Buildroot] [PATCH 0/3] Bump libecoli and grout; DPDK packaging improvement Vincent Jardin via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260413151148.42226-3-maxime@leroys.fr \
--to=maxime@leroys.fr \
--cc=buildroot@buildroot.org \
--cc=ju.o@free.fr \
--cc=vjardin@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox