Skip to contentSkip to conversation

efi_loader: Fix Kconfig for EFI_TCG2 protocol

PATCH Superseded Ilias Apalodimas 2 participants 3 messages May 11, 2021

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 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 v1:
- use 'select' instead of 'depends'

 lib/efi_loader/Kconfig | 1 +
 1 file changed, 1 insertion(+)
lib/efi_loader/Kconfig +1 -0
index 0b99d7c7749b..660236c1fc20 100644
@@ -301,6 +301,7 @@ config EFI_RNG_PROTOCOL
 config EFI_TCG2_PROTOCOL
 	bool "EFI_TCG2_PROTOCOL support"
 	depends on TPM_V2
+	select on SHA1 && SHA256 && SHA384 && 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 v2 1/1 efi_loader: Fix Kconfig for EFI_TCG2 protocol

Quoted 16 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

---
Changes since v1:
- use 'select' instead of 'depends'

 lib/efi_loader/Kconfig | 1 +
 1 file changed, 1 insertion(+)
lib/efi_loader/Kconfig +0 -0
index 0b99d7c7749b..660236c1fc20 100644

lib/efi_loader/Kconfig config EFI_RNG_PROTOCOL · line 304

Quoted 4 lines
lib/efi_loader/Kconfig +1 -0
@@ -301,6 +301,7 @@ config EFI_RNG_PROTOCOL
 config EFI_TCG2_PROTOCOL
 	bool "EFI_TCG2_PROTOCOL support"
 	depends on TPM_V2
+	select on SHA1 && SHA256 && SHA384 && SHA512

it should be just select.

M

Quoted 4 lines
lib/efi_loader/Kconfig +0 -0
 	help
 	  Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware
 	  of the platform.
#2 lore raw

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

doh yea, forgot to delete the 'on' from depends. Let me send a v3

Quoted 33 lines · Michal Simek
Quoted 16 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

---
Changes since v1:
- use 'select' instead of 'depends'

 lib/efi_loader/Kconfig | 1 +
 1 file changed, 1 insertion(+)
lib/efi_loader/Kconfig +0 -0
index 0b99d7c7749b..660236c1fc20 100644

lib/efi_loader/Kconfig config EFI_RNG_PROTOCOL · line 304

Quoted 4 lines
lib/efi_loader/Kconfig +1 -0
@@ -301,6 +301,7 @@ config EFI_RNG_PROTOCOL
 config EFI_TCG2_PROTOCOL
      bool "EFI_TCG2_PROTOCOL support"
      depends on TPM_V2
+     select on SHA1 && SHA256 && SHA384 && SHA512

it should be just select.

M

Quoted 4 lines
lib/efi_loader/Kconfig +0 -0
      help
        Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware
        of the platform.