mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
xilinx: zynq: Guard code around SPL_FS_LOAD_PAYLOAD_NAME
Guard code around CONFIG_SPL_FS_LOAD_PAYLOAD_NAME usage to avoid compilation failure. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/f15a9762494945814b06a71db90ee4db59dd17ed.1738910601.git.michal.simek@amd.com
This commit is contained in:
parent
a7670e6c5b
commit
e2ef5ff765
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue