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 <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/10194 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
e7366daf2e
commit
aab13266b1
|
@ -24,6 +24,7 @@
|
||||||
#include <console/streams.h>
|
#include <console/streams.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <option.h>
|
#include <option.h>
|
||||||
|
#include <rules.h>
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
|
|
||||||
/* While in romstage, console loglevel is built-time constant. */
|
/* 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",
|
printk(BIOS_INFO, "\n\ncoreboot-%s%s %s %s starting...\n",
|
||||||
coreboot_version, coreboot_extra_version, coreboot_build,
|
coreboot_version, coreboot_extra_version, coreboot_build,
|
||||||
#if defined(__BOOTBLOCK__)
|
#if ENV_BOOTBLOCK
|
||||||
"bootblock"
|
"bootblock"
|
||||||
#elif defined(__PRE_RAM__)
|
#elif ENV_ROMSTAGE
|
||||||
"romstage"
|
"romstage"
|
||||||
#else
|
#elif ENV_RAMSTAGE
|
||||||
"ramstage"
|
"ramstage"
|
||||||
|
#elif ENV_VERSTAGE
|
||||||
|
"verstage"
|
||||||
|
#elif ENV_SECMON
|
||||||
|
"secmon"
|
||||||
|
#else
|
||||||
|
"UNKNOWN"
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue