vendorcode/eltan/security: Cleanup prog_locate_hook
Cleanup of the prog_locate_hook routine so the actual coreboot flow is more clearly reflected in the code. Remove logging that is not really needed. BUG=N/A TEST=tested on fbg1701 Change-Id: Iab6c75beac35d043d296336021c0bce1f828cf34 Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36846 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e05dc17d4b
commit
f4a304722a
|
@ -330,28 +330,25 @@ int verified_boot_should_run_oprom(struct rom_header *rom_header)
|
||||||
|
|
||||||
int prog_locate_hook(struct prog *prog)
|
int prog_locate_hook(struct prog *prog)
|
||||||
{
|
{
|
||||||
if (ENV_BOOTBLOCK) {
|
if (ENV_BOOTBLOCK)
|
||||||
printk(BIOS_SPEW, "%s: bootblock\n", __func__);
|
|
||||||
verified_boot_bootblock_check();
|
verified_boot_bootblock_check();
|
||||||
}
|
|
||||||
|
|
||||||
if (ENV_ROMSTAGE) {
|
if (ENV_ROMSTAGE) {
|
||||||
static int prepare_romstage = 0;
|
if (prog->type == PROG_REFCODE)
|
||||||
printk(BIOS_SPEW, "%s: romstage\n", __func__);
|
|
||||||
if (!prepare_romstage) {
|
|
||||||
verified_boot_early_check();
|
verified_boot_early_check();
|
||||||
prepare_romstage = 1;
|
|
||||||
}
|
if (CONFIG(POSTCAR_STAGE) && prog->type == PROG_POSTCAR)
|
||||||
|
process_verify_list(postcar_verify_list);
|
||||||
|
|
||||||
|
if (!CONFIG(POSTCAR_STAGE) && prog->type == PROG_RAMSTAGE)
|
||||||
|
process_verify_list(ramstage_verify_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ENV_POSTCAR) {
|
if (ENV_POSTCAR && prog->type == PROG_RAMSTAGE)
|
||||||
printk(BIOS_SPEW, "%s: postcar\n", __func__);
|
process_verify_list(ramstage_verify_list);
|
||||||
process_verify_list(postcar_verify_list);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ENV_RAMSTAGE) {
|
if (ENV_RAMSTAGE && prog->type == PROG_PAYLOAD)
|
||||||
printk(BIOS_SPEW, "%s: ramstage\n", __func__);
|
|
||||||
process_verify_list(payload_verify_list);
|
process_verify_list(payload_verify_list);
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue