console: Use romstage code for ramstage and SMM
Console is arch-agnostic and there is no need for separate implementations for romstage and ramstage. For SMM there is console only if DEBUG_SMI is selected. Change-Id: I7028eeeff8bfbb9c8552972436b29a7508834d87 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5338 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@ ramstage-y += init.c console.c
|
||||
ramstage-y += post.c
|
||||
ramstage-y += die.c
|
||||
|
||||
smm-$(CONFIG_DEBUG_SMI) += vtxprintf.c printk.c
|
||||
smm-$(CONFIG_DEBUG_SMI) += init.c console.c vtxprintf.c printk.c
|
||||
smm-$(CONFIG_SMM_TSEG) += die.c
|
||||
|
||||
romstage-$(CONFIG_EARLY_CONSOLE) += vtxprintf.c printk.c
|
||||
@@ -15,6 +15,7 @@ bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += vtxprintf.c printk.c
|
||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += init.c console.c
|
||||
bootblock-y += die.c
|
||||
|
||||
$(obj)/console/init.smm.o : $(obj)/build.h
|
||||
$(obj)/console/init.ramstage.o : $(obj)/build.h
|
||||
$(obj)/console/init.romstage.o : $(obj)/build.h
|
||||
$(obj)/console/init.bootblock.o : $(obj)/build.h
|
||||
|
Reference in New Issue
Block a user