]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: Fix Kconfig for EFI_TCG2 protocol
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 11 May 2021 11:40:58 +0000 (14:40 +0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 18 May 2021 10:36:13 +0000 (12:36 +0200)
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>
lib/efi_loader/Kconfig

index 0b99d7c7749b211c672be8796c74869b4f716098..c259abe03338f336f62b1cfd387e8743d055f890 100644 (file)
@@ -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.