Remove VbExTrustEC() from vboot, so it can go into BIOS.

The VbExTrustEC function should be implemented in the BIOS, not the vboot
library. Also, weak references don't seem to work with our linker, so we'll
have to just require it always.

BUG=chrome-os-partner:9953
TEST=none

This must go in with a simultaneous change to U-Boot. The only test is
whether or not everything continues to compile.

Change-Id: I8a5ccb167eec3bcacbe892cf0bdcfe550a1f57d6
Reviewed-on: https://gerrit.chromium.org/gerrit/25557
Tested-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Ready: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
Bill Richardson
2012-06-18 13:37:05 -07:00
committed by Gerrit
parent acd6f4688a
commit 592567e956
3 changed files with 11 additions and 7 deletions

View File

@@ -209,13 +209,6 @@ fallout:
}
/* FIXME(crosbug.com/p/9953): The platform BIOS should implement this! */
/* And not here: somewhere outside of vboot with the other VbEx functions */
int VbExTrustEC(void) {
/* Only return true if the EC is running in its RO firmware *right now*. */
return 1;
}
/* Ask the user to confirm changing the virtual dev-mode switch. If they confirm
* we'll change it and return a reason to reboot. */
static VbError_t VbConfirmChangeDevMode(VbCommonParams* cparams, int to_dev) {