summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-08-15 22:14:04 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-19 14:21:23 -0700
commit8a2fbe288bd3c9cf597f46152f1146472ba9ab2c (patch)
treea4894ff34680d6f223358b488b492c6bdf0a47a7 /common/system.c
parent65ba93af93d5f05cc00a1acaafc2f172f578a722 (diff)
downloadchrome-ec-8a2fbe288bd3c9cf597f46152f1146472ba9ab2c.tar.gz
g: report RW header version along with code revision
Header version fields are instrumental when determining which of the available images is started by the RO. Let's include the header version when reporting the RW images' version as well as RO. BRANCH=none BUG=none TEST=verified that RW header information is now included in the version command output: > vers Chip: g cr50 B2 Board: 0 RO_A: * 0.0.8/8755904e RO_B: -1.-1.-1/ffffffff RW_A: 0.0.1/cr50_v1.1.5093-751a584+ RW_B: * 0.0.1/cr50_v1.1.5093-d27f65f Build: 0.0.1/cr50_v1.1.5093-d27f65f ... Change-Id: I675c473a277e272f55670324fafdab8a6e6edd78 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/370939 Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/system.c b/common/system.c
index 3b1e0ccbc7..6ef35be808 100644
--- a/common/system.c
+++ b/common/system.c
@@ -684,6 +684,7 @@ int system_get_board_version(void)
return v;
}
+__attribute__((weak)) /* Weird chips may need their own implementations */
const char *system_get_build_info(void)
{
return build_info;