summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/block/uart/Makefile.inc
blob: de7b68e3fd1952164fa9c66745b8b629e17603e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## SPDX-License-Identifier: GPL-2.0-only
ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_UART),y)

# all-y can't be used, since verstage on PSP has a different implementation
bootblock-y += uart.c
verstage_x86-y += uart.c
romstage-y += uart.c
postcar-y += uart.c
ramstage-y += uart.c
smm-$(CONFIG_DEBUG_SMI) += uart.c

all-$(CONFIG_AMD_SOC_CONSOLE_UART) += uart_console.c

ifeq ($(CONFIG_DEBUG_SMI),y)
smm-$(CONFIG_AMD_SOC_CONSOLE_UART) += uart_console.c
endif

endif # CONFIG_SOC_AMD_COMMON_BLOCK_UART