diff --git a/SecurityPkg/Library/Tcg2PreUefiEventLogLibNull/Tcg2PreUefiEventLogLibNull.c b/SecurityPkg/Library/Tcg2PreUefiEventLogLibNull/Tcg2PreUefiEventLogLibNull.c new file mode 100644 index 0000000000..65f48e683d --- /dev/null +++ b/SecurityPkg/Library/Tcg2PreUefiEventLogLibNull/Tcg2PreUefiEventLogLibNull.c @@ -0,0 +1,19 @@ +/** @file Tcg2PreUefiEventLogLibNull.c + NULL Tcg2PreUefiEventLogLibNull library instance + +Copyright (c) Microsoft Corporation. All rights reserved. +SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +/** + Create the EventLog entries. +**/ +VOID +EFIAPI +CreateTcg2PreUefiEventLogEntries ( + VOID + ) +{ + return; +} diff --git a/SecurityPkg/Library/Tcg2PreUefiEventLogLibNull/Tcg2PreUefiEventLogLibNull.inf b/SecurityPkg/Library/Tcg2PreUefiEventLogLibNull/Tcg2PreUefiEventLogLibNull.inf new file mode 100644 index 0000000000..62136ae708 --- /dev/null +++ b/SecurityPkg/Library/Tcg2PreUefiEventLogLibNull/Tcg2PreUefiEventLogLibNull.inf @@ -0,0 +1,30 @@ +## @file Tcg2PreUefiEventLogLibNull.inf +# Tcg2PreUefiEventLogLib Null library instance +# +## +# Copyright (c) Microsoft Corporation. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + + +[Defines] + INF_VERSION = 0x00010017 + BASE_NAME = Tcg2PreUefiEventLogLibNull + FILE_GUID = 707A99A0-16FA-4D3C-A033-4568EB40A356 + VERSION_STRING = 1.0 + MODULE_TYPE = BASE + LIBRARY_CLASS = Tcg2PreUefiEventLogLib + +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 +# + + +[Sources] + Tcg2PreUefiEventLogLibNull.c + + +[Packages] + MdePkg/MdePkg.dec diff --git a/SecurityPkg/SecurityPkg.dsc b/SecurityPkg/SecurityPkg.dsc index d9e9602b46..244ad0bb9e 100644 --- a/SecurityPkg/SecurityPkg.dsc +++ b/SecurityPkg/SecurityPkg.dsc @@ -81,12 +81,10 @@ SourceDebugEnabledLib|SourceLevelDebugPkg/Library/SourceDebugEnabled/SourceDebugEnabledLib.inf ## MS_CHANGE_? Hash2CryptoLib|SecurityPkg/Library/BaseHash2CryptoLibNull/BaseHash2CryptoLibNull.inf ## MU_CHANGE SafeIntLib |MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf ## MU_CHANGE - CodeQL change - - ## MU_CHANGE TEMP + [LibraryClasses.X64, LibraryClasses.IA32] - ## NOTE: This is a temporary shim to resolve a build error while a more permanent solution is tested! - Tcg2PreUefiEventLogLib|SecurityPkg/Library/TempPreUefiEventLogLib/TempPreUefiEventLogLib.inf - + Tcg2PreUefiEventLogLib|SecurityPkg/Library/Tcg2PreUefiEventLogLibNull/Tcg2PreUefiEventLogLibNull.inf ## MU_CHANGE + [LibraryClasses.ARM, LibraryClasses.AARCH64] # # It is not possible to prevent the ARM compiler for generic intrinsic functions. @@ -312,6 +310,7 @@ SecurityPkg/Library/TempPreUefiEventLogLib/TempPreUefiEventLogLib.inf SecurityPkg/Library/Tpm2DebugLib/Tpm2DebugLibNull.inf SecurityPkg/Library/Tcg2PhysicalPresencePromptLib/Tcg2PhysicalPresencePromptLibConsole.inf + SecurityPkg/Library/Tcg2PreUefiEventLogLibNull/Tcg2PreUefiEventLogLibNull.inf ## MS_CHANGE END [Components.IA32, Components.X64, Components.ARM, Components.AARCH64]