diff options
author | Ruben Rodriguez Buchillon <coconutruben@chromium.org> | 2021-01-29 19:13:58 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-12 19:35:51 +0000 |
commit | 09ed2b339206cedf791a4728d234b34581580367 (patch) | |
tree | 2cd81f3fc06a3effc88de2dfcacfd60d2e042b44 /board/stm32f446e-eval | |
parent | 834b3526140a60cd8db45d770c6bfaf026ff97a3 (diff) | |
download | chrome-ec-09ed2b339206cedf791a4728d234b34581580367.tar.gz |
servo_updater: consolidate common code-path
Commonly the users of servo_updater (as a script, or a file) care about
the firmware version string in addition to knowing what the filename is,
and the configuration is. These are used to print informational
messages, or check whether an update is needed among other things.
This change consolidates that logic by making sure that the version
string is always extracted when possible.
BRANCH=None
BUG=b:179310743
TEST=sudo servod -b soraka
// observe logs print the servo firmware version information
TEST=sudo servo_updater --board servo_micro
// observe no errors
Change-Id: Id7cb8f53e5fc3e1f557d74445d49fcafbda851ad
Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2661020
Reviewed-by: Brian Nemec <bnemec@chromium.org>
Diffstat (limited to 'board/stm32f446e-eval')
0 files changed, 0 insertions, 0 deletions