app: aboot : Add bootstate for AVB2.0
Add bootstate to to verify boot image for
AVB2.0 validation.
Change-Id: Id8dc28283980686a635b8566ab88d4e944e069c6
diff --git a/app/aboot/mdtp.c b/app/aboot/mdtp.c
index 05f7998..bb806ca 100644
--- a/app/aboot/mdtp.c
+++ b/app/aboot/mdtp.c
@@ -478,6 +478,7 @@
bool restore_to_orange = false;
unsigned long long ptn = 0;
int index = INVALID_PTN;
+ uint32_t bootstate;
/* If image was already verified in aboot, return its status */
if (ext_partition->integrity_state == MDTP_PARTITION_STATE_INVALID)
@@ -538,7 +539,8 @@
/* 4) Verify the image using its signature. */
ret = boot_verify_image((unsigned char *)ext_partition->image_addr,
ext_partition->image_size,
- ext_partition->partition == MDTP_PARTITION_BOOT ? "/boot" : "/recovery");
+ ext_partition->partition == MDTP_PARTITION_BOOT ? "/boot" : "/recovery",
+ &bootstate);
break;
default: