u-boot/arch
Patrick Delaunay c37a668481 stm32mp: fix compilation issue with DEBUG_UART
Fix the compilation issue when CONFIG_DEBUG_UART is activated

 drivers/serial/serial_stm32.o: in function `debug_uart_init':
 drivers/serial/serial_stm32.c:291: undefined reference to \
    `board_debug_uart_init'

The board_debug_uart_init is needed for SPL boot, called in
cpu.c::mach_cpu_init(); it is defined in board/st/stm32mp1/spl.c.

But with the removal #ifdefs patch, the function debug_uart_init() is
always compiled even if not present in the final U-Boot image.

This patch adds a file to provided this function when DEBUG_UART and SPL
are activated.

Fixes: c8b2eef52b ("stm32mp15: tidy up #ifdefs in cpu.c")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2022-10-18 08:40:59 +02:00
..
arc treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
arm stm32mp: fix compilation issue with DEBUG_UART 2022-10-18 08:40:59 +02:00
m68k treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
microblaze treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
mips treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
nios2 treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
powerpc common/board_f: introduce arch_setup_dest_addr() 2022-10-06 21:05:17 -04:00
riscv riscv: Fix build against binutils 2.38 2022-10-07 08:42:51 -04:00
sandbox thermal: add sandbox driver 2022-10-11 16:03:03 -04:00
sh treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
x86 treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
xtensa treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
.gitignore
Kconfig sandbox: Convert to use driver model for SCSI 2022-09-25 13:59:50 -06:00
Kconfig.nxp Convert CONFIG_SYS_FSL_NUM_CC_PLLS to Kconfig 2022-08-12 16:10:49 -04:00
u-boot-elf.lds