summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorBen Gardner <gardner.ben@gmail.com>2015-11-19 10:48:47 -0600
committerMartin Roth <martinroth@google.com>2015-11-20 18:44:20 +0100
commitaa5f5b153f10e7cb49641bedafe9990774d75119 (patch)
treec159a3d15201c4c2b9950b36a71565c94a8c997d /src/console
parent9c6d2b8f4cb4c02a7557787e308fb999bf6a115a (diff)
rules.h: Add ENV_STRING and use it in console_init()
Move the #ifdef chain to set the stage name to rules.h. Change-Id: I577ddf2de4ef249a1a4ce627bb55608731a9f5ed Signed-off-by: Ben Gardner <gardner.ben@gmail.com> Reviewed-on: http://review.coreboot.org/12479 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/init.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/console/init.c b/src/console/init.c
index 7e7c5acdd7..8f40abbe37 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -43,18 +43,6 @@ void console_init(void)
console_hw_init();
- printk(BIOS_INFO, "\n\ncoreboot-%s%s %s %s starting...\n",
- coreboot_version, coreboot_extra_version, coreboot_build,
-#if ENV_BOOTBLOCK
- "bootblock"
-#elif ENV_ROMSTAGE
- "romstage"
-#elif ENV_RAMSTAGE
- "ramstage"
-#elif ENV_VERSTAGE
- "verstage"
-#else
- "UNKNOWN"
-#endif
- );
+ printk(BIOS_INFO, "\n\ncoreboot-%s%s %s " ENV_STRING " starting...\n",
+ coreboot_version, coreboot_extra_version, coreboot_build);
}