summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/console/Makefile.inc3
-rw-r--r--src/cpu/x86/smm/Makefile.inc2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/console/Makefile.inc b/src/console/Makefile.inc
index d721fb4e33..a5dc735369 100644
--- a/src/console/Makefile.inc
+++ b/src/console/Makefile.inc
@@ -3,6 +3,9 @@ obj-y += console.o
obj-y += vtxprintf.o
obj-y += vsprintf.o
+smmobj-y += printk.o
+smmobj-y += vtxprintf.o
+
initobj-y += vtxprintf.o
driver-$(CONFIG_CONSOLE_SERIAL8250) += uart8250_console.o
diff --git a/src/cpu/x86/smm/Makefile.inc b/src/cpu/x86/smm/Makefile.inc
index 36eb23a5d8..222bbd9bbc 100644
--- a/src/cpu/x86/smm/Makefile.inc
+++ b/src/cpu/x86/smm/Makefile.inc
@@ -27,7 +27,7 @@ smmobj-y += smiutil.o
ifdef POST_EVALUATION
-$(obj)/cpu/x86/smm/smm.o: $(smmobjs) $(obj)/console/printk.o $(obj)/console/vtxprintf.o $(LIBGCC_FILE_NAME)
+$(obj)/cpu/x86/smm/smm.o: $(smmobjs)
$(CC) $(LDFLAGS) -nostdlib -r -o $@ $^
$(obj)/cpu/x86/smm/smm: $(obj)/cpu/x86/smm/smm.o $(src)/cpu/x86/smm/smm.ld $(obj)/ldoptions