lib: avb: independent on optee client
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I1bab69baf97b5174024db25278cf30efafd3e34e
This commit is contained in:
parent
80b8cdeb0b
commit
ae205b953a
|
|
@ -252,8 +252,13 @@ static AvbIOResult read_rollback_index(AvbOps *ops,
|
|||
}
|
||||
|
||||
return ret;
|
||||
#else
|
||||
*out_rollback_index = 0;
|
||||
|
||||
return AVB_IO_RESULT_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
return AVB_IO_RESULT_ERROR_IO;
|
||||
}
|
||||
|
||||
|
|
@ -304,6 +309,10 @@ static AvbIOResult read_is_device_unlocked(AvbOps *ops, bool *out_is_unlocked)
|
|||
printf("%s: trusty_read_lock_state failed\n", __FILE__);
|
||||
}
|
||||
return ret;
|
||||
#else
|
||||
*out_is_unlocked = 1;
|
||||
|
||||
return AVB_IO_RESULT_OK;
|
||||
#endif
|
||||
}
|
||||
return AVB_IO_RESULT_ERROR_IO;
|
||||
|
|
|
|||
|
|
@ -370,13 +370,10 @@ out:
|
|||
int rk_avb_read_bootloader_locked_flag(uint8_t *flag)
|
||||
{
|
||||
#ifdef CONFIG_OPTEE_CLIENT
|
||||
if (trusty_read_vbootkey_enable_flag(flag)) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
#else
|
||||
if (trusty_read_vbootkey_enable_flag(flag))
|
||||
return -1;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SUPPORT_EMMC_RPMB
|
||||
|
|
|
|||
Loading…
Reference in New Issue