From aab13266b1dca903ff25a0941a67586248a3fa66 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Wed, 13 May 2015 13:32:11 -0500 Subject: console: enumerate all known stages There are more stages than currently handled in the initial message from console_init(). Add support for those including an UNKNOWN catchall. Change-Id: I2374db590072bdca8ff35116e2ecb2ad6459b697 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/10194 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/console/init.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/console') diff --git a/src/console/init.c b/src/console/init.c index dc727b036d..5bca6ada54 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -24,6 +24,7 @@ #include #include #include +#include #include /* While in romstage, console loglevel is built-time constant. */ @@ -49,12 +50,18 @@ void console_init(void) printk(BIOS_INFO, "\n\ncoreboot-%s%s %s %s starting...\n", coreboot_version, coreboot_extra_version, coreboot_build, -#if defined(__BOOTBLOCK__) +#if ENV_BOOTBLOCK "bootblock" -#elif defined(__PRE_RAM__) +#elif ENV_ROMSTAGE "romstage" -#else +#elif ENV_RAMSTAGE "ramstage" +#elif ENV_VERSTAGE + "verstage" +#elif ENV_SECMON + "secmon" +#else + "UNKNOWN" #endif ); } -- cgit v1.2.3