diff options
author | Hung-Te Lin <hungte@chromium.org> | 2013-02-06 21:51:15 +0800 |
---|---|---|
committer | David Hendricks <dhendrix@chromium.org> | 2013-02-08 02:02:26 +0100 |
commit | 580fa2bf316d4796e5ed76cbbd3e454479fb0688 (patch) | |
tree | f98a396d81d8474377bcb4837180af869dc06e1a /src/console/Makefile.inc | |
parent | f7fcb2056f2ddf151517366a4caf2b6c52b0d920 (diff) | |
download | coreboot-580fa2bf316d4796e5ed76cbbd3e454479fb0688.tar.xz |
console: Only print romstage messages with EARLY_CONSOLE enabled.
Revise console source file dependency (especially for EARLY_CONSOLE) and
interpret printk/console_init according to EARLY_CONSOLE setting (no-ops if
EARLY_CONSOLE is not defined).
Verified to boot on x86/qemu and armv7/snow. Disabling EARLY_CONSOLE correctly
stops romstage messages on x86/qemu (armv7/snow needs more changes to work).
Change-Id: Idbbd3a26bc1135c9d3ae282aad486961fb60e0ea
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: http://review.coreboot.org/2300
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/console/Makefile.inc')
-rw-r--r-- | src/console/Makefile.inc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/console/Makefile.inc b/src/console/Makefile.inc index 8e6037a4c2..9499180d4d 100644 --- a/src/console/Makefile.inc +++ b/src/console/Makefile.inc @@ -9,14 +9,13 @@ smm-y += printk.c smm-y += vtxprintf.c smm-$(CONFIG_SMM_TSEG) += die.c -romstage-y += vtxprintf.c -romstage-$(CONFIG_EARLY_CONSOLE) += console.c +romstage-$(CONFIG_EARLY_CONSOLE) += vtxprintf.c +romstage-y += console.c romstage-y += post.c romstage-y += die.c -# TODO Add vtxprintf.c only when early console is required. -bootblock-y += vtxprintf.c -bootblock-$(CONFIG_EARLY_CONSOLE) += console.c +bootblock-$(CONFIG_EARLY_CONSOLE) += vtxprintf.c +bootblock-y += console.c bootblock-y += die.c ramstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250_console.c |