summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2021-05-11 14:40:58 +0300
committerHeinrich Schuchardt <[email protected]>2021-05-18 12:36:13 +0200
commit48ee084602f90ad37e87ee7e356bf3938b584070 (patch)
tree61d076d07885c1c15d22c6ec2a8ceac19ed22e5b
parent2052759a5e331376c037760a84d36280be0ef3e9 (diff)
efi_loader: Fix Kconfig for EFI_TCG2 protocol
EFI_TCG2 depends not only on TPMv2 but also on the underlying algorithms. So select the missing SHA1, SHA256, SHA384 and SHA512 we currently support Reported-by: Michal Simek <[email protected]> Signed-off-by: Ilias Apalodimas <[email protected]> Add 'default y'. Reviewed-by: Heinrich Schuchardt <[email protected]>
-rw-r--r--lib/efi_loader/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
index 0b99d7c7749..c259abe0333 100644
--- a/lib/efi_loader/Kconfig
+++ b/lib/efi_loader/Kconfig
@@ -300,7 +300,13 @@ config EFI_RNG_PROTOCOL
config EFI_TCG2_PROTOCOL
bool "EFI_TCG2_PROTOCOL support"
+ default y
depends on TPM_V2
+ select SHA1
+ select SHA256
+ select SHA512_ALGO
+ select SHA384
+ select SHA512
help
Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware
of the platform.