All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice CHOTARD <patrice.chotard@foss.st.com>
To: Pascal Zimmermann <pzimmermann@dh-electronics.com>,
	<u-boot@lists.denx.de>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
	Marek Vasut <marex@denx.de>, <u-boot@dh-electronics.com>
Subject: Re: [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd
Date: Mon, 5 May 2025 14:42:58 +0200	[thread overview]
Message-ID: <d5ceda58-bc44-4f60-b4e0-bb711f2688ea@foss.st.com> (raw)
In-Reply-To: <696564cc-4159-4f1c-8f4f-54332b9022bd@foss.st.com>



On 4/11/25 09:15, Patrice CHOTARD wrote:
> 
> 
> On 3/27/25 15:38, Pascal Zimmermann wrote:
>> Make it possible to substitute the 'part list' command inside
>> 'scan_dev_for_boot_part' with a custom board specific implementation.
>>
>> For this the new define 'SCAN_DEV_FOR_BOOT_PARTS' is introduced.
>>
>> Signed-off-by: Pascal Zimmermann <pzimmermann@dh-electronics.com>
>> ---
>> Cc: Tom Rini <trini@konsulko.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> Cc: u-boot@lists.denx.de
>> Cc: Marek Vasut <marex@denx.de>
>> Cc: u-boot@dh-electronics.com
>> ---
>>  include/config_distro_bootcmd.h | 7 ++++++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
>> index 0a4e4b8ff85..df0dc8cfdee 100644
>> --- a/include/config_distro_bootcmd.h
>> +++ b/include/config_distro_bootcmd.h
>> @@ -194,6 +194,11 @@
>>  #define SCAN_DEV_FOR_EFI
>>  #endif
>>  
>> +#ifndef SCAN_DEV_FOR_BOOT_PARTS
>> +#define SCAN_DEV_FOR_BOOT_PARTS \
>> +	"part list ${devtype} ${devnum} -bootable devplist; "
>> +#endif
>> +
>>  #ifdef CONFIG_SATA
>>  #define BOOTENV_SHARED_SATA	BOOTENV_SHARED_BLKDEV(sata)
>>  #define BOOTENV_DEV_SATA	BOOTENV_DEV_BLKDEV
>> @@ -538,7 +543,7 @@
>>  		"\0"                                                      \
>>  	\
>>  	"scan_dev_for_boot_part="                                         \
>> -		"part list ${devtype} ${devnum} -bootable devplist; "     \
>> +		SCAN_DEV_FOR_BOOT_PARTS                                   \
>>  		"env exists devplist || setenv devplist 1; "              \
>>  		"for distro_bootpart in ${devplist}; do "                 \
>>  			"if fstype ${devtype} "                           \
> 
> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>

Hi Pascal

Applied to u-boot-stm32/master

Thanks
Patrice


> 
> Thanks
> Patrice

  reply	other threads:[~2025-05-05 12:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-27 14:38 [RESEND PATCH 0/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
2025-03-27 14:38 ` [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd Pascal Zimmermann
2025-04-11  7:15   ` Patrice CHOTARD
2025-05-05 12:42     ` Patrice CHOTARD [this message]
2025-03-27 14:38 ` [RESEND PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
2025-04-11  7:24   ` Patrice CHOTARD
2025-05-05 12:43     ` Patrice CHOTARD

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=d5ceda58-bc44-4f60-b4e0-bb711f2688ea@foss.st.com \
    --to=patrice.chotard@foss.st.com \
    --cc=marex@denx.de \
    --cc=pzimmermann@dh-electronics.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@dh-electronics.com \
    --cc=u-boot@lists.denx.de \
    /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 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.