mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01: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
@ -179,6 +179,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
|
|||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
|
|
||||||
switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
|
switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
|
||||||
|
#if defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
|
||||||
case ZYNQ_BM_SD:
|
case ZYNQ_BM_SD:
|
||||||
snprintf(buf, DFU_ALT_BUF_LEN,
|
snprintf(buf, DFU_ALT_BUF_LEN,
|
||||||
"mmc 0=boot.bin fat 0 1;"
|
"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_SPL_FS_LOAD_PAYLOAD_NAME,
|
||||||
CONFIG_SYS_SPI_U_BOOT_OFFS);
|
CONFIG_SYS_SPI_U_BOOT_OFFS);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user