Skip to contentSkip to conversation

buildtools: allow reusing dpdk-cmdline-gen.py when used a subproject

PATCH Applied Robin Jarry 3 participants 3 messages Nov 20, 2023 – Jul 23, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildtools: allow reusing dpdk-cmdline-gen.py when used a subproject

When DPDK is used as a subproject, allow declaring wrap files that provide dpdk-cmdline-gen.py.

This way, find_program('dpdk-cmdline-gen.py') will return the path to the script in the DPDK subproject source tree.

---
 buildtools/subproject/meson.build | 2 ++
 1 file changed, 2 insertions(+)
buildtools/subproject/meson.build +2 -0
index 3192efaa406f..985ce76a9384 100644
@@ -19,3 +19,5 @@ else
 endif
 
 libdpdk_dep = dpdk_dep
+
+meson.override_find_program('dpdk-cmdline-gen.py', file('../dpdk-cmdline-gen.py'))
Signature · 1 line
2.42.0
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Robin Jarry

When DPDK is used as a subproject, allow declaring wrap files that provide dpdk-cmdline-gen.py.

This way, find_program('dpdk-cmdline-gen.py') will return the path to the script in the DPDK subproject source tree.

---

#2 lore raw

20/11/2023 17:29, Bruce Richardson:

Quoted 7 lines · Robin Jarry
Quoted 6 lines

When DPDK is used as a subproject, allow declaring wrap files that provide dpdk-cmdline-gen.py.

This way, find_program('dpdk-cmdline-gen.py') will return the path to the script in the DPDK subproject source tree.

Quoted 6 lines
Quoted 5 lines

---

Applied, thanks.