vendorcode/eltan/security: Remove cbfs prepare and locate

The prepare functionality will be removed from cbfs support and the
eltan verified boot is the only software using it. This is not really
required as we can use the prog_locate_hook() for this functionality.

BUG=N/A
TEST=tested on fbg1701

Change-Id: I189cbad4b24bbbb0840ce6100c89a42a327c5456
Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36821
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
This commit is contained in:
Wim Vervoorn 2019-11-14 09:50:59 +01:00 committed by Patrick Georgi
parent 7ea8b8866a
commit e05dc17d4b
1 changed files with 2 additions and 7 deletions

View File

@ -328,7 +328,7 @@ int verified_boot_should_run_oprom(struct rom_header *rom_header)
return process_oprom_list(oprom_verify_list, rom_header);
}
static void vendor_secure_prepare(void)
int prog_locate_hook(struct prog *prog)
{
if (ENV_BOOTBLOCK) {
printk(BIOS_SPEW, "%s: bootblock\n", __func__);
@ -353,10 +353,5 @@ static void vendor_secure_prepare(void)
printk(BIOS_SPEW, "%s: ramstage\n", __func__);
process_verify_list(payload_verify_list);
}
return 0;
}
const struct cbfs_locator cbfs_default_locator = {
.name = "Vendorcode Header Locator",
.prepare = vendor_secure_prepare,
.locate = cbfs_default_props
};