DPDK patches and discussions
 help / color / mirror / Atom feed
From: Robin Jarry <rjarry@redhat.com>
To: dev@dpdk.org
Cc: Bruce Richardson <bruce.richardson@intel.com>
Subject: [PATCH] buildtools: allow reusing dpdk-cmdline-gen.py when used a subproject
Date: Mon, 20 Nov 2023 17:28:15 +0100	[thread overview]
Message-ID: <20231120162814.74764-2-rjarry@redhat.com> (raw)

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@intel.com>
Signed-off-by: Robin Jarry <rjarry@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


             reply	other threads:[~2023-11-20 16:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-20 16:28 Robin Jarry [this message]
2023-11-20 16:29 ` Bruce Richardson

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=20231120162814.74764-2-rjarry@redhat.com \
    --to=rjarry@redhat.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    /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;
as well as URLs for NNTP newsgroup(s).