U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xilinx: zynq: Guard code around SPL_FS_LOAD_PAYLOAD_NAME
@ 2025-02-07  6:43 Michal Simek
  2025-02-17 14:35 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2025-02-07  6:43 UTC (permalink / raw)
  To: u-boot, git; +Cc: Simon Glass, Tom Rini

Guard code around CONFIG_SPL_FS_LOAD_PAYLOAD_NAME usage to avoid
compilation failure.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 board/xilinx/zynq/board.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index a852d5b8ed53..8dbfa5604231 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -179,6 +179,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
 	memset(buf, 0, sizeof(buf));
 
 	switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
+#if defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
 	case ZYNQ_BM_SD:
 		snprintf(buf, DFU_ALT_BUF_LEN,
 			 "mmc 0=boot.bin fat 0 1;"
@@ -192,6 +193,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
 			 CONFIG_SPL_FS_LOAD_PAYLOAD_NAME,
 			 CONFIG_SYS_SPI_U_BOOT_OFFS);
 		break;
+#endif
 #endif
 	default:
 		return;
-- 
2.43.0


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

* Re: [PATCH] xilinx: zynq: Guard code around SPL_FS_LOAD_PAYLOAD_NAME
  2025-02-07  6:43 [PATCH] xilinx: zynq: Guard code around SPL_FS_LOAD_PAYLOAD_NAME Michal Simek
@ 2025-02-17 14:35 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2025-02-17 14:35 UTC (permalink / raw)
  To: u-boot, git; +Cc: Simon Glass, Tom Rini



On 2/7/25 07:43, Michal Simek wrote:
> Guard code around CONFIG_SPL_FS_LOAD_PAYLOAD_NAME usage to avoid
> compilation failure.
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
> 
>   board/xilinx/zynq/board.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
> index a852d5b8ed53..8dbfa5604231 100644
> --- a/board/xilinx/zynq/board.c
> +++ b/board/xilinx/zynq/board.c
> @@ -179,6 +179,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
>   	memset(buf, 0, sizeof(buf));
>   
>   	switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
> +#if defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
>   	case ZYNQ_BM_SD:
>   		snprintf(buf, DFU_ALT_BUF_LEN,
>   			 "mmc 0=boot.bin fat 0 1;"
> @@ -192,6 +193,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
>   			 CONFIG_SPL_FS_LOAD_PAYLOAD_NAME,
>   			 CONFIG_SYS_SPI_U_BOOT_OFFS);
>   		break;
> +#endif
>   #endif
>   	default:
>   		return;

applied.
M

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

end of thread, other threads:[~2025-02-17 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07  6:43 [PATCH] xilinx: zynq: Guard code around SPL_FS_LOAD_PAYLOAD_NAME Michal Simek
2025-02-17 14:35 ` Michal Simek

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