diff options
author | Keith Short <keithshort@chromium.org> | 2021-04-08 08:43:58 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-23 22:08:53 +0000 |
commit | f0be771092e47854664c6028c56d1499ca412f8a (patch) | |
tree | d85a8918fa2aa6043939fa3a14641a9e7f763ed3 /common/main.c | |
parent | 4e074a16c5703f0cdd7b7d780a8ae1bea53a445a (diff) | |
download | chrome-ec-f0be771092e47854664c6028c56d1499ca412f8a.tar.gz |
zephyr: Update banner to match Chromium OS
Update the boot banner to match Chromium OS. This also modifies the
version output to include "_zephyr" after the board name to clearly
identify the image type.
Boot banner:
Booting Zephyr OS build zephyr-v2.5.0-31-g6fcd6373e58a
--- UART initialized after reboot ---
[Image: RO, volteer_zephyr_v2.0.8350-190d6f 2021-04-08 11:15:09
keithshort@mtbaldy]
[Reset cause: reset-pin]
uart:~$ version
Chip: Nuvoton NPCX796FC 02
Board: 1
RO: volteer_zephyr_v2.0.8350-190d6f
RW: volteer_zephyr_v2.0.8350-190d6f
Build: volteer_zephyr_v2.0.8350-190d6f
2021-04-08 11:15:09 keithshort@mtbaldy
BUG=none
BRANCH=none
TEST=zmake testall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ia136c4e025aba95217f1d8c51de39255fef54f7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2822208
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/common/main.c b/common/main.c index c1626e41fc..75df57066c 100644 --- a/common/main.c +++ b/common/main.c @@ -143,20 +143,7 @@ test_mockable __keep int main(void) if (mpu_pre_init_rv != EC_SUCCESS) panic("MPU init failed"); - /* be less verbose if we boot for USB resume to meet spec timings */ - if (!(system_get_reset_flags() & EC_RESET_FLAG_USB_RESUME)) { - CPUTS("\n"); - if (system_jumped_to_this_image()) - CPRINTS("UART initialized after sysjump"); - else - CPUTS("\n--- UART initialized after reboot ---\n"); - CPRINTF("[Image: %s, %s]\n", - system_get_image_copy_string(), - system_get_build_info()); - CPUTS("[Reset cause: "); - system_print_reset_flags(); - CPUTS("]\n"); - } + system_print_banner(); #ifdef CONFIG_BRINGUP ccprintf("\n\nWARNING: BRINGUP BUILD\n\n\n"); |