MA-18192 Only bump the rollback index when avb verify ok
authorJi Luo <ji.luo@nxp.com>
Fri, 30 Oct 2020 08:14:09 +0000 (16:14 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:18 +0000 (09:49 +0800)
commit5893d8707dd66e0f36bc6dbd7c805cd20c05f725
treef9efe79695d1090435a475e2130a7bd60533c38d
parent9533092f7557e2f728d5fc59836ceac19658291d
MA-18192 Only bump the rollback index when avb verify ok

AVB verify should fail for GKI boot image but we should allow it
continue to boot in UNLOCKED state. In such case, we should not
update the stored rollback index.

This commit will update the rollback index only when the AVB
verify is OK to prevent rollback index check error.

Test: boots.

Signed-off-by: Ji Luo <ji.luo@nxp.com>
Change-Id: I82678d288edd4df6de40a1ca863ed36d3b3658a8
(cherry picked from commit ea48b544581d630bc031a7968a90b2fcf328424a)
(cherry picked from commit 8619089859b6c24f82a2f6fda9bd2c58c2e38851)
lib/avb/fsl/fsl_bootctrl.c