aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/eltan/security/verified_boot/vboot_check.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-05 17:12:42 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-11-08 07:43:09 +0000
commited8eaab08a79f6a20b2bcffd5a1073e56812ac2b (patch)
treed71d2a0ab956a8770005d33b333662ddace3d34e /src/vendorcode/eltan/security/verified_boot/vboot_check.h
parentdd227a7d97fff248360d9e9d6df11e0dbc303959 (diff)
eltan/security: Remove some preprocessor guards
We generally let garbage-collection take care of unused functions. While at it, move some related variable declarations in to the header file and declare them const like they should be. Change-Id: I7c6fa15bd45f861f13b6123ccb14c55415e42bc7 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36632 Reviewed-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/eltan/security/verified_boot/vboot_check.h')
-rw-r--r--src/vendorcode/eltan/security/verified_boot/vboot_check.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vendorcode/eltan/security/verified_boot/vboot_check.h b/src/vendorcode/eltan/security/verified_boot/vboot_check.h
index 22f1edf948..36c8ffa8d3 100644
--- a/src/vendorcode/eltan/security/verified_boot/vboot_check.h
+++ b/src/vendorcode/eltan/security/verified_boot/vboot_check.h
@@ -32,12 +32,8 @@
/* These method verifies the SHA256 hash over the 'named' CBFS component.
* 'type' denotes the type of CBFS component i.e. stage, payload or fsp.
*/
-#ifdef __BOOTBLOCK__
void verified_boot_bootblock_check(void);
-#endif
-#ifdef __ROMSTAGE__
void verified_boot_early_check(void);
-#endif
int verified_boot_check_manifest(void);
@@ -75,4 +71,9 @@ typedef struct {
void process_verify_list(const verify_item_t list[]);
+extern const verify_item_t bootblock_verify_list[];
+extern const verify_item_t postcar_verify_list[];
+extern const verify_item_t payload_verify_list[];
+extern const verify_item_t oprom_verify_list[];
+
#endif //VBOOT_CHECK_H