Skip to content

Commit

Permalink
UefiPayloadPkg: Add TcgPhysicalPresenceLibNull library so TPM_ENABLE=…
Browse files Browse the repository at this point in the history
…FALSE compiles

Signed-off-by: Matt DeVillier <[email protected]>
Change-Id: I90061fde778f9ddcbf681558032bd71824576655
  • Loading branch information
MrChromebox committed Aug 7, 2024
1 parent df4d548 commit 371701a
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** @file
NULL TcgPhysicalPresenceLib library instance
Copyright (c) 2018, Red Hat, Inc.
Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/

#include <Library/TcgPhysicalPresenceLib.h>

EFI_STATUS
EFIAPI
TcgPhysicalPresenceLibProcessRequest (
VOID
)
{
return EFI_SUCCESS;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## @file
# NULL TcgPhysicalPresenceLib library instance
#
# Under SecurityPkg, the corresponding library instance will check and
# execute TPM 1.2 request from OS or BIOS; the request may ask for user
# confirmation before execution. This Null instance implements a no-op
# Tcg2PhysicalPresenceLibProcessRequest(), without user interaction.
#
# Copyright (C) 2018, Red Hat, Inc.
# Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##

[Defines]
INF_VERSION = 0x00010005
BASE_NAME = DxeTcgPhysicalPresenceLibNull
FILE_GUID = F5967F4F-B53F-4669-91A5-A3DA0F30AF22
MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = TcgPhysicalPresenceLib|DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION UEFI_DRIVER

[Sources]
DxeTcgPhysicalPresenceLib.c

[Packages]
MdePkg/MdePkg.dec
SecurityPkg/SecurityPkg.dec
UefiPayloadPkg/UefiPayloadPkg.dec
1 change: 1 addition & 0 deletions UefiPayloadPkg/UefiPayloadPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
!else
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
TcgPhysicalPresenceLib|UefiPayloadPkg/Library/TcgPhysicalPresenceLibNull/DxeTcgPhysicalPresenceLib.inf
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
!endif

Expand Down

0 comments on commit 371701a

Please sign in to comment.