summaryrefslogtreecommitdiff
path: root/src/vboot
diff options
context:
space:
mode:
Diffstat (limited to 'src/vboot')
-rw-r--r--src/vboot/vboot_logic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vboot/vboot_logic.c b/src/vboot/vboot_logic.c
index bc6ab48191..41896e1126 100644
--- a/src/vboot/vboot_logic.c
+++ b/src/vboot/vboot_logic.c
@@ -119,6 +119,13 @@ static int handle_digest_result(void *slot_hash, size_t slot_hash_sz)
int is_resume;
/*
+ * Chrome EC is the only support for vboot_save_hash()/vboot_retrieve_hash(), if Chrome EC
+ * is not enabled then return.
+ */
+ if (!IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC))
+ return 0;
+
+ /*
* Nothing to do since resuming on the platform doesn't require
* vboot verification again.
*/