Stub tlcl implementation for tpm2 case

Build a special version of TPM Lightweight Command Library in
libvboot_host for TPM2. Create the framework for implementation, stub
functions for now. libvboot_host is used by tpmc and other user-space
utilities that talk directly to tpm bypassing trunks/trousers.

BRANCH=none
BUG=chrome-os-partner:54981
BUG=chrome-os-partner:55210
TEST=Boot on kevin, verify that 'tpmc read' works.

Change-Id: I4cc41028041193041defc319687697eb9edb1f3e
Reviewed-on: https://chromium-review.googlesource.com/358623
Commit-Ready: Andrey Pronin <apronin@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Tested-by: Andrey Pronin <apronin@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
This commit is contained in:
Andrey Pronin
2016-07-06 19:10:46 -07:00
committed by chrome-bot
parent d5820a79fc
commit 1becb0dabe
6 changed files with 218 additions and 19 deletions

View File

@@ -51,17 +51,19 @@ int main(void)
TlclRead(0, 0, 0);
TlclWriteLock(0);
TlclReadLock(0);
TlclAssertPhysicalPresence();
TlclSetNvLocked();
TlclIsOwned();
TlclForceClear();
TlclSetEnable();
TlclClearEnable();
TlclSetDeactivated(0);
TlclGetFlags(0, 0, 0);
TlclSetGlobalLock();
TlclExtend(0, 0, 0);
TlclGetPermissions(0, 0);
#ifndef TPM2_MODE
TlclAssertPhysicalPresence();
TlclSetNvLocked();
TlclClearEnable();
TlclSetGlobalLock();
#endif
/* vboot_api.h - entry points INTO vboot_reference */
VbInit(0, 0);