Skip to contentSkip to conversation

efi_loader: Fix Kconfig for EFI_TCG2 protocol

PATCH New Ilias Apalodimas 2 participants 2 messages May 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 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

---
changes since v3:
- add multiple select lines
changes since v2:
- remove 'on' after select
changes since v1:
- use 'select' instead of 'depend'

 lib/efi_loader/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
lib/efi_loader/Kconfig +4 -0
index 0b99d7c7749b..9a5a0334ad45 100644
@@ -301,6 +301,10 @@ config EFI_RNG_PROTOCOL
 config EFI_TCG2_PROTOCOL
 	bool "EFI_TCG2_PROTOCOL support"
 	depends on TPM_V2
+	select SHA1
+	select SHA256
+	select SHA384
+	select SHA512
 	help
 	  Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware
 	  of the platform.
Signature · 1 line
2.31.0
#1 lore raw

PATCH v4 1/1 efi_loader: Fix Kconfig for EFI_TCG2 protocol

Quoted 5 lines · Ilias Apalodimas

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

I will add the default=y when merging as discussed online.

Quoted 26 lines

---
changes since v3:
- add multiple select lines
changes since v2:
- remove 'on' after select
changes since v1:
- use 'select' instead of 'depend'

 lib/efi_loader/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
lib/efi_loader/Kconfig +4 -0
index 0b99d7c7749b..9a5a0334ad45 100644
@@ -301,6 +301,10 @@ config EFI_RNG_PROTOCOL
 config EFI_TCG2_PROTOCOL
 	bool "EFI_TCG2_PROTOCOL support"
 	depends on TPM_V2
+	select SHA1
+	select SHA256
+	select SHA384
+	select SHA512
 	help
 	  Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware
 	  of the platform.