From: David Gibson <david@gibson.dropbear.id.au>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: devicetree-compiler@vger.kernel.org
Subject: Re: [PATCH] meson: use override_find_program/override_dependency
Date: Thu, 12 Jun 2025 16:34:37 +1000 [thread overview]
Message-ID: <aEp0_c6ctFQKmfYB@zatzit> (raw)
In-Reply-To: <20250612053829.1037412-1-pbonzini@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]
On Thu, Jun 12, 2025 at 07:38:29AM +0200, Paolo Bonzini wrote:
> Allow projects that use dtc as a subproject to find the tools and
> library via find_program() and dependency(). This way, for those
> projects there is no different between system dtc and subproject dtc.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Applied, thanks.
> ---
> libfdt/meson.build | 1 +
> meson.build | 4 ++++
> 2 files changed, 5 insertions(+)
>
> diff --git a/libfdt/meson.build b/libfdt/meson.build
> index 9c6ef54..68d4c1d 100644
> --- a/libfdt/meson.build
> +++ b/libfdt/meson.build
> @@ -40,6 +40,7 @@ libfdt_dep = declare_dependency(
> include_directories: libfdt_inc,
> link_with: libfdt,
> )
> +meson.override_dependency('libfdt', libfdt_dep)
>
> if not wheel_only
> install_headers(
> diff --git a/meson.build b/meson.build
> index ed4a39d..66b44e8 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -118,6 +118,10 @@ if get_option('tools') and not wheel_only
> )
> endif
>
> +foreach e: dtc_tools
> + meson.override_find_program(e.name(), e)
> +endforeach
> +
> if pylibfdt_enabled
> subdir('pylibfdt')
> endif
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2025-06-12 10:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-12 5:38 [PATCH] meson: use override_find_program/override_dependency Paolo Bonzini
2025-06-12 6:34 ` David Gibson [this message]
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=aEp0_c6ctFQKmfYB@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=devicetree-compiler@vger.kernel.org \
--cc=pbonzini@redhat.com \
/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).