coreboot/src/commonlib/bsd
Karthikeyan Ramasubramanian da5d0251f5 util/cbfstool: Check for metadata hash in verstage
Metadata Hash is usually present inside the first segment of BIOS. On
board where vboot starts in bootblock, it is present in bootblock. On
boards where vboot starts before bootblock, it is present in file
containing verstage. Update cbfstool to check for metadata hash in file
containing verstage besides bootblock.

Add a new CBFS file type for the concerned file and exclude it from CBFS
verification.

BUG=b:227809919
TEST=Build and boot to OS in Skyrim with CBFS verification enabled using
x86 and PSP verstages.

Change-Id: Ib4dfba6a9cdbda0ef367b812f671c90e5f90caf8
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66942
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2022-10-26 15:59:58 +00:00
..
include/commonlib/bsd util/cbfstool: Check for metadata hash in verstage 2022-10-26 15:59:58 +00:00
cbfs_mcache.c commonlib/bsd: Remove cb_err_t 2022-03-09 02:18:21 +00:00
cbfs_private.c cbfs/vboot: Adapt to new vb2_digest API 2022-09-02 23:51:29 +00:00
elog.c elog: calculate year correctly in timestamp 2021-09-23 06:26:19 +00:00
lz4.c.inc
lz4_wrapper.c commonlib/lz4_wrapper.c: do not use bitfields 2021-06-11 07:41:41 +00:00