aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2021-05-11 14:40:58 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-05-18 12:36:13 +0200
commit48ee084602f90ad37e87ee7e356bf3938b584070 (patch)
tree61d076d07885c1c15d22c6ec2a8ceac19ed22e5b
parent2052759a5e331376c037760a84d36280be0ef3e9 (diff)
downloadu-boot-48ee084602f90ad37e87ee7e356bf3938b584070.zip
u-boot-48ee084602f90ad37e87ee7e356bf3938b584070.tar.gz
u-boot-48ee084602f90ad37e87ee7e356bf3938b584070.tar.bz2
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 <michal.simek@xilinx.com> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Add 'default y'. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-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 0b99d7c..c259abe 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.