diff options
author | Ji Luo <ji.luo@nxp.com> | 2018-08-31 15:23:15 +0800 |
---|---|---|
committer | faqiang.zhu <faqiang.zhu@nxp.com> | 2018-11-12 09:18:38 +0800 |
commit | e48ceaae247211f53effd33371d0bfe20b8b867d (patch) | |
tree | 4436574ef16365f4cd3025945a9ada42df1c3f39 /drivers | |
parent | 26131b6347be315b9b87e0c10bc7a000c34c10c0 (diff) |
[iot] Update rollback index when slot has been marked as successful
The rollback index should be updated when avb verify pass
and the slot has been marked as successful, update the
rollback index also for those enabled dual bootloader
feature.
This commit also fix some configs condition issue so
read/write rollback index with trusty will work.
Test: rollback index updated successfully on
imx7d_pico and AIY.
Change-Id: I2344d6462249d8d88f0622d331cdeffc7e12f885
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_fastboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 6c8410e9c6..2c6a3ac4e2 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -928,7 +928,7 @@ static void process_flash_mmc(const char *cmdbuf) { if (download_bytes) { struct fastboot_ptentry *ptn; -#ifdef CONFIG_AVB_SUPPORT +#if defined(AVB_RPMB) && !defined(CONFIG_ARM64) if (!strcmp_l1(FASTBOOT_PARTITION_AVBKEY, cmdbuf)) { printf("pubkey len %d\n", download_bytes); if (avbkey_init(interface.transfer_buffer, download_bytes) != 0) { |