summaryrefslogtreecommitdiff
path: root/src/vboot/vboot_logic.c
diff options
context:
space:
mode:
authorNaresh G Solanki <naresh.solanki@intel.com>2016-11-06 12:51:14 +0530
committerMartin Roth <martinroth@google.com>2016-11-07 19:49:48 +0100
commit3d44d69f93693b44758465244d7e58770fc4918c (patch)
treeca94c1ce3bc75bc69ea310e02ed5935e0e121061 /src/vboot/vboot_logic.c
parent8d353afe08f01f0864b30848ac70f81e43e1de17 (diff)
vboot: Disable vboot verification when Chrome EC disabled
When Chrome EC is disabled, vboot hash is not available during S3 resume Hence disable vboot verification when Chrome EC is not available. Change-Id: I665f5f0e2e53da7b735de30443d323572d8a1a9c Signed-off-by: Naresh G Solanki <naresh.solanki@intel.com> Reviewed-on: https://review.coreboot.org/17246 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/vboot/vboot_logic.c')
-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.
*/