diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2018-12-13 14:55:27 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-21 03:46:19 +0000 |
commit | 91d4fec4606e2145d522274c786d46d12721cf9a (patch) | |
tree | f9ebc2a7adcf50f7d50209b183319be4a5d599a6 /builtin | |
parent | 0c1c11be2d9a590110d8d339a774b3ad8aedf96f (diff) | |
download | chrome-ec-91d4fec4606e2145d522274c786d46d12721cf9a.tar.gz |
version: Make ver_get_num_commits work for on-flash images
EFS needs to check whether a RW version on flash is equal to or newer
for rollback protection before jumping to a RW copy.
Currently, ver_get_numcommits works only for the running image. This
makes it work for images on flash as well.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
BUG=chromium:998135
BRANCH=none
TEST=Boot Nami. Verify version numbers are read from RAM and flash.
Change-Id: I94475e40f89dc4c3173d83cb1d9d4ad38d6fab79
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1450816
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions