From 0cc9e15513d71516f731c3fe4d544a14bda03820 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Tue, 13 May 2014 15:37:59 -0700 Subject: [PATCH] Add stage information to coreboot banner This is just a convenience - when printing a pre-ram coreboot banner, add the actual stage name to it. BUG=none TEST=manual . with CONFIG_EARLY_CONSOLE enabled the banners look as follows (the last one is for ramstage reads 'booting' instead of 'starting'): coreboot-4.0 bootblock Tue May 13 14:13:37 PDT 2014 starting... coreboot-4.0 romstage Tue May 13 14:13:37 PDT 2014 starting... coreboot-4.0 Tue May 13 14:13:37 PDT 2014 booting... Change-Id: I218c0d3bbfa4a9bdff5632855c520af8626d6495 Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/199671 Reviewed-by: Aaron Durbin --- src/console/console.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/console/console.c b/src/console/console.c index 64056b43ea..de62546ea7 100644 --- a/src/console/console.c +++ b/src/console/console.c @@ -124,7 +124,11 @@ void console_init(void) "\n\ncoreboot-" COREBOOT_VERSION COREBOOT_EXTRA_VERSION - " " +#if defined(__BOOT_BLOCK__) + " bootblock " +#else + " romstage " +#endif COREBOOT_BUILD " starting...\n"; print_info(console_test);