All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel-fitimage: Cope with FIT_CONF_DEFAULT_DTB being empty
@ 2025-05-23 12:20 mac
  2025-05-25 15:41 ` [OE-core] " Mathieu Dubois-Briand
  0 siblings, 1 reply; 4+ messages in thread
From: mac @ 2025-05-23 12:20 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mike Crowe, Jack Mitchell

From: Mike Crowe <mac@mcrowe.com>

Quote both sides of the comparison of ${FIT_CONF_DEFAULT_DTB} and $DTB
consistently to avoid parse errors if either side is empty.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Reviewed-by: Jack Mitchell <jack@embed.me.uk>
---
 meta/classes-recipe/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass
index 07786647e1..c81c00f777 100644
--- a/meta/classes-recipe/kernel-fitimage.bbclass
+++ b/meta/classes-recipe/kernel-fitimage.bbclass
@@ -593,7 +593,7 @@ fitimage_assemble() {
 		for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" -name '*.dtb' -printf '%P\n' | sort) \
 		$(find "${EXTERNAL_KERNEL_DEVICETREE}" -name '*.dtbo' -printf '%P\n' | sort); do
 			# Set the default dtb image if it exists in the devicetree.
-			if [ ${FIT_CONF_DEFAULT_DTB} = $DTB ];then
+			if [ "${FIT_CONF_DEFAULT_DTB}" = "$DTB" ];then
 				default_dtb_image=$(echo "$DTB" | tr '/' '_')
 			fi
 
-- 
2.39.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] kernel-fitimage: Cope with FIT_CONF_DEFAULT_DTB being empty
  2025-05-23 12:20 [PATCH] kernel-fitimage: Cope with FIT_CONF_DEFAULT_DTB being empty mac
@ 2025-05-25 15:41 ` Mathieu Dubois-Briand
  2025-05-25 18:45   ` Mike Crowe
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Dubois-Briand @ 2025-05-25 15:41 UTC (permalink / raw)
  To: mac, openembedded-core; +Cc: Jack Mitchell

On Fri May 23, 2025 at 2:20 PM CEST, Mike Crowe via lists.openembedded.org wrote:
> From: Mike Crowe <mac@mcrowe.com>
>
> Quote both sides of the comparison of ${FIT_CONF_DEFAULT_DTB} and $DTB
> consistently to avoid parse errors if either side is empty.
>
> Signed-off-by: Mike Crowe <mac@mcrowe.com>
> Reviewed-by: Jack Mitchell <jack@embed.me.uk>
> ---

Hi Mike,

Thanks for your patch.

Just a note: this patch is conflicting with the "FIT image improvements"
series:
https://lists.openembedded.org/g/openembedded-core/message/217192

As this series is most likely going to be merged soon, can you rewrite
your patch on top of it?

Thanks!

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] kernel-fitimage: Cope with FIT_CONF_DEFAULT_DTB being empty
  2025-05-25 15:41 ` [OE-core] " Mathieu Dubois-Briand
@ 2025-05-25 18:45   ` Mike Crowe
  2025-05-26  6:56     ` Mathieu Dubois-Briand
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Crowe @ 2025-05-25 18:45 UTC (permalink / raw)
  To: Mathieu Dubois-Briand; +Cc: openembedded-core, Jack Mitchell

On Sunday 25 May 2025 at 17:41:51 +0200, Mathieu Dubois-Briand wrote:
> On Fri May 23, 2025 at 2:20 PM CEST, Mike Crowe via lists.openembedded.org wrote:
> > From: Mike Crowe <mac@mcrowe.com>
> >
> > Quote both sides of the comparison of ${FIT_CONF_DEFAULT_DTB} and $DTB
> > consistently to avoid parse errors if either side is empty.
> >
> > Signed-off-by: Mike Crowe <mac@mcrowe.com>
> > Reviewed-by: Jack Mitchell <jack@embed.me.uk>
> > ---
> 
> Hi Mike,
> 
> Thanks for your patch.
> 
> Just a note: this patch is conflicting with the "FIT image improvements"
> series:
> https://lists.openembedded.org/g/openembedded-core/message/217192
> 
> As this series is most likely going to be merged soon, can you rewrite
> your patch on top of it?

Hi Mathieu,

I spotted that not long after I posted my patch. I replied, but somehow I
only managed to send that reply to Adrian Freihofer, the author of the
conflicting patch. Anyway, here's what I said:

> It looks like Adrian Freihofer's
> "[PATCH v5 14/17] kernel-fitimage: re-write its code in Python"
> in <20250523094152.727177-15-adrian.freihofer@siemens.com> removes this code
> and replaces it with Python which won't suffer from the problem. That's
> much better than my fix above.

So my patch can be ignored.

Thanks and sorry for the hassle.

Mike.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] kernel-fitimage: Cope with FIT_CONF_DEFAULT_DTB being empty
  2025-05-25 18:45   ` Mike Crowe
@ 2025-05-26  6:56     ` Mathieu Dubois-Briand
  0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Dubois-Briand @ 2025-05-26  6:56 UTC (permalink / raw)
  To: Mike Crowe; +Cc: openembedded-core, Jack Mitchell

On Sun May 25, 2025 at 8:45 PM CEST, Mike Crowe wrote:
> On Sunday 25 May 2025 at 17:41:51 +0200, Mathieu Dubois-Briand wrote:
>> On Fri May 23, 2025 at 2:20 PM CEST, Mike Crowe via lists.openembedded.org wrote:
>> > From: Mike Crowe <mac@mcrowe.com>
>> >
>> > Quote both sides of the comparison of ${FIT_CONF_DEFAULT_DTB} and $DTB
>> > consistently to avoid parse errors if either side is empty.
>> >
>> > Signed-off-by: Mike Crowe <mac@mcrowe.com>
>> > Reviewed-by: Jack Mitchell <jack@embed.me.uk>
>> > ---
>> 
>> Hi Mike,
>> 
>> Thanks for your patch.
>> 
>> Just a note: this patch is conflicting with the "FIT image improvements"
>> series:
>> https://lists.openembedded.org/g/openembedded-core/message/217192
>> 
>> As this series is most likely going to be merged soon, can you rewrite
>> your patch on top of it?
>
> Hi Mathieu,
>
> I spotted that not long after I posted my patch. I replied, but somehow I
> only managed to send that reply to Adrian Freihofer, the author of the
> conflicting patch. Anyway, here's what I said:
>
>> It looks like Adrian Freihofer's
>> "[PATCH v5 14/17] kernel-fitimage: re-write its code in Python"
>> in <20250523094152.727177-15-adrian.freihofer@siemens.com> removes this code
>> and replaces it with Python which won't suffer from the problem. That's
>> much better than my fix above.
>
> So my patch can be ignored.
>
> Thanks and sorry for the hassle.
>
> Mike.

No problem, thanks for the update!

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-26  6:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23 12:20 [PATCH] kernel-fitimage: Cope with FIT_CONF_DEFAULT_DTB being empty mac
2025-05-25 15:41 ` [OE-core] " Mathieu Dubois-Briand
2025-05-25 18:45   ` Mike Crowe
2025-05-26  6:56     ` Mathieu Dubois-Briand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.