From f350768a82d2d445e35eea7dd99e8d49e9e5260c Mon Sep 17 00:00:00 2001 From: Joel Kitching Date: Tue, 15 Oct 2019 01:04:35 +0800 Subject: [PATCH] vboot: add new vb2ex_abort callback Required for new VB2_ASSERT and VB2_DIE macros in vboot code. (See chromium:972956.) BUG=b:124141368, chromium:1005700 TEST=make clean && make test-abuild BRANCH=none Change-Id: I61a1036ccab80862d6eb12f9f72286f29e8478cf Signed-off-by: Joel Kitching Reviewed-on: https://review.coreboot.org/c/coreboot/+/36035 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/security/vboot/vboot_logic.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/security/vboot/vboot_logic.c b/src/security/vboot/vboot_logic.c index d049740776..da6231ae65 100644 --- a/src/security/vboot/vboot_logic.c +++ b/src/security/vboot/vboot_logic.c @@ -87,6 +87,11 @@ vb2_error_t vb2ex_read_resource(struct vb2_context *ctx, return VB2_SUCCESS; } +void vb2ex_abort(void) +{ + die("vboot has aborted execution; exit\n"); +} + /* No-op stubs that can be overridden by SoCs with hardware crypto support. */ __weak vb2_error_t vb2ex_hwcrypto_digest_init(enum vb2_hash_algorithm hash_alg, uint32_t data_size)