tcg2: decouple eventlog size from efi

Move default eventlog size from efi to tpm for using in both
efi and measured boot.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
Raymond Mao
2025-01-27 06:49:35 -08:00
committed by Simon Glass
parent addb58f5f4
commit d18ab9a74d
5 changed files with 17 additions and 19 deletions

View File

@@ -216,6 +216,15 @@ config TPM2_EFI
This driver supports the use of UEFI firmware-provided drivers for
interfacing with a TPM 2.
config TPM2_EVENT_LOG_SIZE
int "EventLog size"
depends on TPM_V2
default 65536
help
Define the size of the EventLog. Note that this is going to be
allocated twice. One for the eventlog it self and one for the
configuration table that is required from the TCG2 spec
endif # TPM_V2
endmenu