[PATCH v4 2/3] tcg2: decouple eventlog size from efi
Raymond Mao
raymond.mao at linaro.org
Fri Jan 10 22:56:34 CET 2025
Move default eventlog size from efi to tpm for using in both
modules.
Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
---
Changes in v4
- Initial patch.
include/efi_tcg2.h | 2 --
include/tpm_tcg2.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/efi_tcg2.h b/include/efi_tcg2.h
index 8dfb1bc952..7ed8880991 100644
--- a/include/efi_tcg2.h
+++ b/include/efi_tcg2.h
@@ -28,8 +28,6 @@
#define EFI_TCG2_MAX_PCR_INDEX 23
#define EFI_TCG2_FINAL_EVENTS_TABLE_VERSION 1
-#define TPM2_EVENT_LOG_SIZE CONFIG_EFI_TCG2_PROTOCOL_EVENTLOG_SIZE
-
typedef u32 efi_tcg_event_log_bitmap;
typedef u32 efi_tcg_event_log_format;
typedef u32 efi_tcg_event_algorithm_bitmap;
diff --git a/include/tpm_tcg2.h b/include/tpm_tcg2.h
index 6519004cc4..25a31daf65 100644
--- a/include/tpm_tcg2.h
+++ b/include/tpm_tcg2.h
@@ -65,6 +65,8 @@
#define EFI_DTB_EVENT_STRING \
"DTB DATA"
+#define TPM2_EVENT_LOG_SIZE CONFIG_EFI_TCG2_PROTOCOL_EVENTLOG_SIZE
+
/**
* struct TCG_EfiSpecIdEventAlgorithmSize - hashing algorithm information
*
--
2.25.1
More information about the U-Boot
mailing list