]> Git Repo - J-u-boot.git/commit - lib/tpm-v1.c
tpm: Remove use of build-time TPM versions
authorSimon Glass <[email protected]>
Sat, 24 Nov 2018 04:29:32 +0000 (21:29 -0700)
committerSimon Glass <[email protected]>
Wed, 5 Dec 2018 13:01:34 +0000 (06:01 -0700)
commit0a60a0a65fa98f265c79f3928d8628aabcba8a92
tree5a7c28336bc8ab523acbff7c67d56478f9aef249
parent40e9ede1dcd852a97d772b8d592e36195c5d8b80
tpm: Remove use of build-time TPM versions

There is only one place in the code which assumes at build-time that we
are using either a v1 or a v2 TPM. Fix this up and add a new function to
return the version of a TPM.

Supported TPM versions (v1 and v2) can be enabled independently and it is
possible to use both versions at once. This is useful for sandbox when
running tests.

Signed-off-by: Simon Glass <[email protected]>
include/tpm-common.h
lib/tpm-common.c
lib/tpm-v1.c
This page took 0.03437 seconds and 4 git commands to generate.