Skip to content

Add DPDK build directory configuration script

Anatoly Burakov dpdk-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 0 repliesNew
  2. v21 patch 0 repliesSuperseded
  3. v11 patch 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1devtools: add DPDK build directory setup scriptdevtools/dpdk-setup.py doc/guides/linux_gsg/build_dpdk.rst+810 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/1] Add DPDK build directory configuration script

Note: this patch depends upon Bruce's v5 patchset:

https://patches.dpdk.org/project/dpdk/list/?series=34055

This patch is based on initial script for VSCode configuration:

https://patches.dpdk.org/project/dpdk/patch/6a6b20c037cffcc5f68a341c4b4e4f21990ae991.1721997016.git.anatoly.burakov@intel.com/

This is a TUI frontend for Meson. It is by no means meant to be used as a replacement for using Meson proper, it is merely a shortcut for those who constantly deal with creating new Meson build directories but don't want to type out all components each time.

It relies on dependency graphs from the above Bruce's patchset (v3 introduced support for optional dependencies, which this script requires) to work. It'll create a Meson build directory in the background, enabling all options, and then use both dependency graph and meson introspection to figure out what can be built, and what dependencies it has.

With this script it is possible to produce very minimal builds - the script is not only able to track dependencies between components to enable them, but it can also (with a command line switch) specify which libraries we want to enable (omitting those not required by currently selected components). This can be useful for users who frequently reconfigure their tree with e.g. debug/release, shared/static etc. builds while keeping the reconfiguration time fairly small.

We used to have a "setup.sh" script to "set up" DPDK. This is not that, but it's a good start.

Anatoly Burakov (1):
devtools: add DPDK build directory setup script

 devtools/dpdk-setup.py              | 784 ++++++++++++++++++++++++++++
 doc/guides/linux_gsg/build_dpdk.rst |  26 +
 2 files changed, 810 insertions(+)
 create mode 100755 devtools/dpdk-setup.py
Signature · 1 line
2.43.5