diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-04-12 10:35:17 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-24 15:51:48 -0700 |
commit | a644614860c8ae269d8615917770094838ae2ad8 (patch) | |
tree | 96bf1ecf91591ad66e2389d657115c129dd39d53 /util/getversion.sh | |
parent | 8358c1e1845a2e49f635ad98150b57c435e5bca6 (diff) | |
download | chrome-ec-a644614860c8ae269d8615917770094838ae2ad8.tar.gz |
util/stm32mon: Add cmdline option to display version
Also display the version when running in order to make it easier to
debug flashing issues in the field or factory.
BRANCH=none
BUG=chromium:952332
TEST=./util/flash_ec --board=hatch_fp --image=./build/hatch_fp/ec.bin
=> displays stm32mon version
./build/hatch_fp/util/stm32mon -v
=> displays version
./build/hatch_fp/util/stm32mon --version
=> displays version
Change-Id: I43f622ed370938eeed31453d5b11806f02b47277
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1565462
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'util/getversion.sh')
-rwxr-xr-x | util/getversion.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/getversion.sh b/util/getversion.sh index 765571492e..19e79814c4 100755 --- a/util/getversion.sh +++ b/util/getversion.sh @@ -131,6 +131,9 @@ main() { echo "/* Version string for ectool. */" echo "#define CROS_ECTOOL_VERSION \"${tool_ver}\"" + echo "/* Version string for stm32mon. */" + echo "#define CROS_STM32MON_VERSION \"${tool_ver}\"" + echo "/* Sub-fields for use in Makefile.rules and to form build info string" echo " * in common/version.c. */" echo "#define VERSION \"${ver}\"" |