libpayload/vboot: Add vboot context initialization and management code
To fully and easily implement fallback/recovery in libcbfs with vboot support the codebase requires access to vboot context. Moving context management to libpayload allows to avoid unnecessary overhead and code complication and still allows payloads to access it in a way it was designed. Access to this codebase will also allow implementation of e.g. vboot_fail_and_reboot() and other helpful utilities used by coreboot and depthcharge. BUG=b:197114807 TEST=make unit-tests TEST=Build and boot on google/ovis4es with CL:4839296 and VBOOT_CBFS_INTEGRATION enabled Change-Id: Id719be7c4f07251201424b7dc6c1125c6b5756d8 Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77635 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
committed by
Martin L Roth
parent
58c2efc8e2
commit
f64f3d0048
@ -42,6 +42,16 @@ vb2_error_t vb2_hash_verify(bool allow_hwcrypto, const void *buf, uint32_t size,
|
||||
return VB2_ERROR_SHA_MISMATCH;
|
||||
}
|
||||
|
||||
bool vb2api_hwcrypto_allowed(struct vb2_context *ctx)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
struct vb2_context *vboot_get_context(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
unsigned long ulzman(const unsigned char *src, unsigned long srcn, unsigned char *dst,
|
||||
unsigned long dstn)
|
||||
{
|
||||
|
Reference in New Issue
Block a user