summaryrefslogtreecommitdiff
path: root/src/drivers/uart/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/uart/Makefile.inc')
-rw-r--r--src/drivers/uart/Makefile.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/uart/Makefile.inc b/src/drivers/uart/Makefile.inc
index 3a9ca3d592..415c5bb095 100644
--- a/src/drivers/uart/Makefile.inc
+++ b/src/drivers/uart/Makefile.inc
@@ -2,19 +2,19 @@ ifeq ($(CONFIG_CONSOLE_SERIAL),y)
romstage-y += util.c
ramstage-y += util.c
bootblock-y += util.c
-smm-y += util.c
+smm-$(CONFIG_DEBUG_SMI) += util.c
endif
ifeq ($(CONFIG_CONSOLE_SERIAL8250),y)
romstage-y += uart8250io.c
ramstage-y += uart8250io.c
-smm-y += uart8250io.c
+smm-$(CONFIG_DEBUG_SMI) += uart8250io.c
endif
ifeq ($(CONFIG_CONSOLE_SERIAL8250MEM),y)
romstage-y += uart8250mem.c
ramstage-y += uart8250mem.c
-smm-y += uart8250mem.c
+smm-$(CONFIG_DEBUG_SMI) += uart8250mem.c
endif
ifeq ($(CONFIG_CONSOLE_SERIAL_UART),y)