U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xilinx: Allow alternative boot strategies in zynq-common.h
       [not found] <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.b6aa62ed-c125-4ac0-8424-d1beba536b58@emailsignatures365.codetwo.com>
@ 2025-03-07  6:29 ` Mike Looijmans
  2025-03-17  9:42   ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Looijmans @ 2025-03-07  6:29 UTC (permalink / raw)
  To: u-boot; +Cc: Mike Looijmans, Marek Vasut, Michal Simek, Simon Glass, Tom Rini

Allow config headers that include zynq-common.h to provide their own
(distro) boot strategies. This is implemented by skipping the section
when BOOT_ENV has already been defined.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---

 include/configs/zynq-common.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 37c77aa1611..ad872c9d922 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -48,6 +48,9 @@
 #define BOOTENV
 #else
 
+/* Only use this section if no BOOTENV has been configured yet */
+#ifndef BOOTENV
+
 #ifdef CONFIG_CMD_MMC
 #define BOOT_TARGET_DEVICES_MMC(func) func(MMC, mmc, 0) func(MMC, mmc, 1)
 #else
@@ -167,6 +170,9 @@
 	BOOT_TARGET_DEVICES_DHCP(func)
 
 #include <config_distro_bootcmd.h>
+
+#endif /* BOOTENV */
+
 #endif /* CONFIG_XPL_BUILD */
 
 /* Default environment */
-- 
2.34.1


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijmans@topic.nl
W: www.topic.nl

Please consider the environment before printing this e-mail

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

* Re: [PATCH] xilinx: Allow alternative boot strategies in zynq-common.h
  2025-03-07  6:29 ` [PATCH] xilinx: Allow alternative boot strategies in zynq-common.h Mike Looijmans
@ 2025-03-17  9:42   ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2025-03-17  9:42 UTC (permalink / raw)
  To: Mike Looijmans, u-boot; +Cc: Marek Vasut, Simon Glass, Tom Rini



On 3/7/25 07:29, Mike Looijmans wrote:
> Allow config headers that include zynq-common.h to provide their own
> (distro) boot strategies. This is implemented by skipping the section
> when BOOT_ENV has already been defined.
> 
> Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
> ---
> 
>   include/configs/zynq-common.h | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
> index 37c77aa1611..ad872c9d922 100644
> --- a/include/configs/zynq-common.h
> +++ b/include/configs/zynq-common.h
> @@ -48,6 +48,9 @@
>   #define BOOTENV
>   #else
>   
> +/* Only use this section if no BOOTENV has been configured yet */
> +#ifndef BOOTENV
> +
>   #ifdef CONFIG_CMD_MMC
>   #define BOOT_TARGET_DEVICES_MMC(func) func(MMC, mmc, 0) func(MMC, mmc, 1)
>   #else
> @@ -167,6 +170,9 @@
>   	BOOT_TARGET_DEVICES_DHCP(func)
>   
>   #include <config_distro_bootcmd.h>
> +
> +#endif /* BOOTENV */
> +
>   #endif /* CONFIG_XPL_BUILD */
>   
>   /* Default environment */

Just for the record v2 was sent.

M

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

end of thread, other threads:[~2025-03-17  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.b6aa62ed-c125-4ac0-8424-d1beba536b58@emailsignatures365.codetwo.com>
2025-03-07  6:29 ` [PATCH] xilinx: Allow alternative boot strategies in zynq-common.h Mike Looijmans
2025-03-17  9:42   ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox