summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-02-29 00:39:41 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-03-02 16:46:26 +0000
commita94e3277b332536a01d8e109f5ae277dcfe82337 (patch)
tree123b8db7b44a2b09fa80629b0cf92a9f3ebceff4 /common/main.c
parent1db93690d9b3fed1690f6645408384451c42519b (diff)
downloadchrome-ec-a94e3277b332536a01d8e109f5ae277dcfe82337.tar.gz
update versioning information stored in the EC
Add build information (date/time/builder) which can be displayed at the EC console. Generate a version from the board name and the branch tag. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=chromium-os:27013 TEST=on BDS, run version command on the console. inspect the built binary. Change-Id: Idb1f68898ba6b811d02919f17ab4536ed9f8934a
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c
index 628227d627..887312f6e5 100644
--- a/common/main.c
+++ b/common/main.c
@@ -96,9 +96,9 @@ int main(void)
/* Print the reset cause */
uart_printf("\n\n--- Chrome EC initialized! ---\n");
- uart_printf("(image: %s, version: %s, last reset: %s)\n",
+ uart_printf("build: %s\n", system_get_build_info());
+ uart_printf("(image: %s, last reset: %s)\n",
system_get_image_copy_string(),
- system_get_version(SYSTEM_IMAGE_UNKNOWN),
system_get_reset_cause_string());
/* Launch task scheduling (never returns) */