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>
diff --git a/src/vendorcode/eltan/security/verified_boot/vboot_check.c b/src/vendorcode/eltan/security/verified_boot/vboot_check.c
index c053263..36090ec 100644
--- a/src/vendorcode/eltan/security/verified_boot/vboot_check.c
+++ b/src/vendorcode/eltan/security/verified_boot/vboot_check.c
@@ -328,7 +328,7 @@
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 @@
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
-};