From e10edfe71e37675fc6caceb67df102ca4501782b Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Thu, 22 May 2025 16:53:03 -0400 Subject: [PATCH] MdeModulePkg/TpmMeasurementLibNull: Allow broader linking This is needed in a MM_CORE_STANDALONE module. Since this null instance is so simple, remove individual module types to allow it be integrated more easily. Signed-off-by: Michael Kubacki --- .../Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c | 3 +++ .../Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c index 880b428d56..d6853a1912 100644 --- a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c +++ b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c @@ -6,6 +6,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent **/ +#include +#include + /** Tpm measure and log data, and extend the measurement result into a specific PCR. diff --git a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf index c3be447d40..96d816b88f 100644 --- a/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf +++ b/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf @@ -10,9 +10,9 @@ INF_VERSION = 0x00010005 BASE_NAME = TpmMeasurementLibNull FILE_GUID = 6DFD6E9F-9278-48D8-8F45-B6CFF2C2B69C - MODULE_TYPE = UEFI_DRIVER + MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = TpmMeasurementLib|SEC PEIM DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER + LIBRARY_CLASS = TpmMeasurementLib MODULE_UNI_FILE = TpmMeasurementLibNull.uni #