app: aboot: Set OS version and patch level
Add OS version and patch level before sending RoT.
Change-Id: Ib76ec45b8bad89693fa95961897505887cff763a
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 9ecbea3..0db2e1e 100755
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -1417,6 +1417,8 @@
#if VERIFIED_BOOT
#if !VBOOT_MOTA
+ /* set boot and system versions. */
+ set_os_version((unsigned char *)image_addr);
// send root of trust
if(!send_rot_command((uint32_t)device.is_unlocked))
ASSERT(0);
@@ -2603,6 +2605,8 @@
#if VERIFIED_BOOT
#if !VBOOT_MOTA
+ /* set boot and system versions. */
+ set_os_version((unsigned char *)data);
// send root of trust
if(!send_rot_command((uint32_t)device.is_unlocked))
ASSERT(0);