From: David Gibson <david@gibson.dropbear.id.au>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: devicetree-compiler@vger.kernel.org
Subject: Re: [PATCH 1/6] Emit /plugin/ when compiling to .dts with DTSF_PLUGIN set
Date: Thu, 21 Aug 2025 14:24:19 +1000 [thread overview]
Message-ID: <aKafc7z-7yklmm5d@zatzit> (raw)
In-Reply-To: <3dff5b0db7c17aa388010222d36946fe9177f69b.1755692822.git.u.kleine-koenig@baylibre.com>
[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]
On Wed, Aug 20, 2025 at 03:11:27PM +0200, Uwe Kleine-König wrote:
> This fixes `dtc -I dts -O dts` to make the file a plugin if the source
> file is one.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> treesource.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/treesource.c b/treesource.c
> index d25f01fc6937..72d1cb5508b5 100644
> --- a/treesource.c
> +++ b/treesource.c
> @@ -369,7 +369,10 @@ void dt_to_source(FILE *f, struct dt_info *dti)
> {
> struct reserve_info *re;
>
> - fprintf(f, "/dts-v1/;\n\n");
> + fprintf(f, "/dts-v1/;\n");
> + if (dti->dtsflags & DTSF_PLUGIN)
> + fprintf(f, "/plugin/;\n");
> + fprintf(f, "\n");
>
> for (re = dti->reservelist; re; re = re->next) {
> struct label *l;
--
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 --]
next prev parent reply other threads:[~2025-08-21 4:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-20 13:11 [PATCH 0/6] Restore phandles from binary representations Uwe Kleine-König
2025-08-20 13:11 ` [PATCH 1/6] Emit /plugin/ when compiling to .dts with DTSF_PLUGIN set Uwe Kleine-König
2025-08-21 4:24 ` David Gibson [this message]
2025-08-20 13:11 ` [PATCH 2/6] Set DTSF_PLUGIN if needed when compiling from dtb Uwe Kleine-König
2025-08-21 4:24 ` David Gibson
2025-08-20 13:11 ` [PATCH 3/6] Improve type guessing when compiling to dts format Uwe Kleine-König
2025-08-21 4:24 ` David Gibson
2025-08-20 13:11 ` [PATCH 4/6] Restore labels from __symbols__ node Uwe Kleine-König
2025-08-21 4:25 ` David Gibson
2025-08-20 13:11 ` [PATCH 5/6] Restore phandle references from __local_fixups__ node Uwe Kleine-König
2025-08-21 4:23 ` David Gibson
2025-08-20 13:11 ` [PATCH 6/6] Restore phandle references from __fixups__ node Uwe Kleine-König
2025-08-21 4:31 ` David Gibson
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=aKafc7z-7yklmm5d@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=devicetree-compiler@vger.kernel.org \
--cc=u.kleine-koenig@baylibre.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).