[PATCH 1/2] xilinx: zynq: Generate dfu for SPI only when enabled

Michal Simek michal.simek at amd.com
Tue Nov 21 15:28:42 CET 2023



On 11/13/23 10:05, Michal Simek wrote:
> Bitmain S9 board is not enabling SPI that's why CONFIG_SYS_SPI_U_BOOT_OFFS
> symbol is not present which ends in build failure when EFI/DFU
> infrastructure is enabled.
> 
> Signed-off-by: Michal Simek <michal.simek at 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 3b6581e30462..6c365910011d 100644
> --- a/board/xilinx/zynq/board.c
> +++ b/board/xilinx/zynq/board.c
> @@ -184,6 +184,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
>   			 "mmc 0=boot.bin fat 0 1;"
>   			 "%s fat 0 1", CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
>   		break;
> +#if defined(CONFIG_SPL_SPI_LOAD)
>   	case ZYNQ_BM_QSPI:
>   		snprintf(buf, DFU_ALT_BUF_LEN,
>   			 "sf 0:0=boot.bin raw 0 0x1500000;"
> @@ -191,6 +192,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
>   			 CONFIG_SPL_FS_LOAD_PAYLOAD_NAME,
>   			 CONFIG_SYS_SPI_U_BOOT_OFFS);
>   		break;
> +#endif
>   	default:
>   		return;
>   	}

Applied.
M



More information about the U-Boot mailing list