eltan/security: Replace __BOOTBLOCK__ with ENV_BOOTBLOCK
Change-Id: I6ec5a33cd6a6342adfe73c050e0c376bbefad96a Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36634 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
This commit is contained in:
parent
ed8eaab08a
commit
bf43f9ef13
|
@ -131,8 +131,6 @@ static int vendor_secure_locate(struct cbfs_props *props)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __BOOTBLOCK__
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* measure_item
|
* measure_item
|
||||||
|
@ -168,7 +166,6 @@ static int measure_item(uint32_t pcr, uint8_t *hashData, uint32_t hashDataLen,
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void verified_boot_check_buffer(const char *name, void *start, size_t size,
|
static void verified_boot_check_buffer(const char *name, void *start, size_t size,
|
||||||
uint32_t hash_index, int32_t pcr)
|
uint32_t hash_index, int32_t pcr)
|
||||||
|
@ -198,8 +195,7 @@ static void verified_boot_check_buffer(const char *name, void *start, size_t siz
|
||||||
printk(BIOS_EMERG, "%s ", name);
|
printk(BIOS_EMERG, "%s ", name);
|
||||||
die("HASH verification failed!\n");
|
die("HASH verification failed!\n");
|
||||||
} else {
|
} else {
|
||||||
#ifndef __BOOTBLOCK__
|
if (!ENV_BOOTBLOCK && CONFIG(VENDORCODE_ELTAN_MBOOT)) {
|
||||||
if (CONFIG(VENDORCODE_ELTAN_MBOOT)) {
|
|
||||||
if (pcr != -1) {
|
if (pcr != -1) {
|
||||||
printk(BIOS_DEBUG, "%s: measuring %s\n", __func__, name);
|
printk(BIOS_DEBUG, "%s: measuring %s\n", __func__, name);
|
||||||
if (measure_item(pcr, digest, sizeof(digest),
|
if (measure_item(pcr, digest, sizeof(digest),
|
||||||
|
@ -208,7 +204,6 @@ static void verified_boot_check_buffer(const char *name, void *start, size_t siz
|
||||||
__func__);
|
__func__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (CONFIG(VENDORCODE_ELTAN_VBOOT))
|
if (CONFIG(VENDORCODE_ELTAN_VBOOT))
|
||||||
printk(BIOS_DEBUG, "%s HASH verification success\n", name);
|
printk(BIOS_DEBUG, "%s HASH verification success\n", name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue