mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	 Ahmad Fatoum <a.fatoum@pengutronix.de>,
	 "open list:BAREBOX" <barebox@lists.infradead.org>
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
	"Miquèl Raynal" <miquel.raynal@bootlin.com>,
	"Hervé Codina" <herve.codina@bootlin.com>,
	"Thomas Bonnefille" <thomas.bonnefille@bootlin.com>
Subject: [PATCH v2 3/3] FIT: add cmdline to whitelist of non-hashed properties
Date: Thu, 24 Sep 2026 19:59:33 +0200	[thread overview]
Message-ID: <20260924-add-cmdline-fitimage-v2-3-4a665e165002@bootlin.com> (raw)
In-Reply-To: <20260924-add-cmdline-fitimage-v2-0-4a665e165002@bootlin.com>

The cmdline parameter of the fitimage is an additional optional property
in a configuration node that is used to transmit information to the next
bootstage.
Just like description, compatible and default, this property doesn't
reference an image (e.g. a kernel, a ramdisk or an fdt) and so it isn't
hashed and shouldn't be added to the list of hashed images.
Add `cmdline` to the whitelist of property in a configuration node that
aren't images.

Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
---
 common/image-fit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/image-fit.c b/common/image-fit.c
index 635f63c9e2..cd477911cc 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -333,6 +333,7 @@ static int fit_config_build_hash_nodes(struct fit_handle *handle,
 	for_each_property_of_node(conf_node, prop) {
 		if (!strcmp(prop->name, "description") ||
 		    !strcmp(prop->name, "compatible") ||
+		    !strcmp(prop->name, "cmdline") ||
 		    !strcmp(prop->name, "default"))
 			continue;
 

-- 
2.55.0




      parent reply	other threads:[~2026-09-24 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24 17:59 [PATCH v2 0/3] FIT: parse and use the cmdline property of FIT images Thomas Bonnefille
2026-09-24 17:59 ` [PATCH v2 1/3] bootm: add fitimage command line to bootargs Thomas Bonnefille
2026-09-24 17:59 ` [PATCH v2 2/3] test: py: add test for fit cmdline parameter Thomas Bonnefille
2026-09-24 17:59 ` Thomas Bonnefille [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=20260924-add-cmdline-fitimage-v2-3-4a665e165002@bootlin.com \
    --to=thomas.bonnefille@bootlin.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=herve.codina@bootlin.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=s.hauer@pengutronix.de \
    --cc=thomas.petazzoni@bootlin.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