[PATCH] buildtools: allow reusing dpdk-cmdline-gen.py when used a subproject
Robin Jarry
rjarry at redhat.com
Mon Nov 20 17:28:15 CET 2023
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.
Link: https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
Link: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonoverride_find_program
Cc: Bruce Richardson <bruce.richardson at intel.com>
Signed-off-by: Robin Jarry <rjarry at redhat.com>
---
buildtools/subproject/meson.build | 2 ++
1 file changed, 2 insertions(+)
diff --git a/buildtools/subproject/meson.build b/buildtools/subproject/meson.build
index 3192efaa406f..985ce76a9384 100644
--- a/buildtools/subproject/meson.build
+++ b/buildtools/subproject/meson.build
@@ -19,3 +19,5 @@ else
endif
libdpdk_dep = dpdk_dep
+
+meson.override_find_program('dpdk-cmdline-gen.py', file('../dpdk-cmdline-gen.py'))
--
2.42.0
More information about the dev
mailing list