forked from MrChromebox/edk2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UefiPayloadPkg: Add TcgPhysicalPresenceLibNull library so TPM_ENABLE=…
…FALSE compiles Signed-off-by: Matt DeVillier <[email protected]> Change-Id: I90061fde778f9ddcbf681558032bd71824576655
- Loading branch information
1 parent
df4d548
commit 371701a
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
UefiPayloadPkg/Library/TcgPhysicalPresenceLibNull/DxeTcgPhysicalPresenceLib.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
29 changes: 29 additions & 0 deletions
29
UefiPayloadPkg/Library/TcgPhysicalPresenceLibNull/DxeTcgPhysicalPresenceLib.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters