From 8f14e8e6b25e04df5d5b03e38be54eda8eff1f81 Mon Sep 17 00:00:00 2001 From: Benjamin Doron Date: Mon, 4 Mar 2024 11:59:53 -0500 Subject: soc/amd/genoa_poc: Allow using UART with DEBUG_SMI=y When DEBUG_SMI is selected, common code may use these helpers to handle addressing and initialising the SoC-specific UART. Therefore, add uart.c to be compiled into SMM. Change-Id: If7c6f2346d5f9ffb371d51d1de6f0b695acedf10 Signed-off-by: Benjamin Doron Reviewed-on: https://review.coreboot.org/c/coreboot/+/81072 Reviewed-by: Marvin Drees Reviewed-by: Felix Held Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan Reviewed-by: Angel Pons --- src/soc/amd/genoa_poc/Makefile.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/soc/amd/genoa_poc/Makefile.mk b/src/soc/amd/genoa_poc/Makefile.mk index 01bbe7b8f9..94cee34960 100644 --- a/src/soc/amd/genoa_poc/Makefile.mk +++ b/src/soc/amd/genoa_poc/Makefile.mk @@ -22,6 +22,7 @@ ramstage-y += smihandler.c ramstage-y += mca.c smm-y += smihandler.c +smm-$(CONFIG_DEBUG_SMI) += uart.c CPPFLAGS_common += -I$(src)/soc/amd/genoa_poc/acpi CPPFLAGS_common += -I$(src)/soc/amd/genoa_poc/include -- cgit v1.2.3