mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
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:
committed by
chrome-bot
parent
d5820a79fc
commit
1becb0dabe
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user