Skip to content

Commit ec779d3

Browse files
Raymond-MSapop5
authored andcommitted
[TPM] Tpm2HelpLib Updates (#735)
## Description Changes related to the new Tpm2HelpLib which replaces the need for Tpm2CommandLib which houses Tpm2Help.c. Reliant on microsoft/mu_tiano_plus#437 For details on how to complete these options and their meaning refer to [CONTRIBUTING.md](https://github.com/microsoft/mu/blob/HEAD/CONTRIBUTING.md). - [x] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [ ] Includes tests? - [ ] Includes documentation? - [ ] Backport to release branch? ## How This Was Tested Verified by building and running on physical platform. ## Integration Instructions Need to update platform .dsc to include the new Tpm2HelpLib.
1 parent dd07ac2 commit ec779d3

11 files changed

Lines changed: 11 additions & 4 deletions

File tree

MfciPkg/MfciPkg.dsc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
5353
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
5454
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
55+
Tpm2HelpLib|SecurityPkg/Library/Tpm2HelpLib/Tpm2HelpLib.inf
5556
SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
5657
PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
5758
MfciRetrievePolicyLib|MfciPkg/Library/MfciRetrievePolicyLibNull/MfciRetrievePolicyLibNull.inf

TpmTestingPkg/Overrides/Tcg2Dxe/Tcg2Dxe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
3939
#include <Library/MemoryAllocationLib.h>
4040
#include <Library/PrintLib.h>
4141
#include <Library/Tpm2CommandLib.h>
42+
#include <Library/Tpm2HelpLib.h> // MU_CHANGE
4243
#include <Library/PcdLib.h>
4344
#include <Library/UefiLib.h>
4445
#include <Library/Tpm2DeviceLib.h>

TpmTestingPkg/Overrides/Tcg2Dxe/Tcg2Dxe.inf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
DeviceStateLib
7777
PanicLib
7878
## MU_CHANGE [END]
79+
Tpm2HelpLib # MU_CHANGE
7980

8081
[Guids]
8182
## SOMETIMES_CONSUMES ## Variable:L"SecureBoot"

TpmTestingPkg/TpmReplayPei/Pei/TpmReplayPei.inf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
PeiServicesLib
5959
ReportStatusCodeLib
6060
Tpm2CommandLib
61+
Tpm2HelpLib
6162

6263
[Guids]
6364
gTcgEvent2EntryHobGuid ## PRODUCES ## HOB

TpmTestingPkg/TpmReplayPei/Pei/TpmReplayPeiTpmInitialized.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <Library/ReportStatusCodeLib.h>
2929
#include <Library/Tpm2CommandLib.h>
3030
#include <Library/Tpm2DeviceLib.h>
31+
#include <Library/Tpm2HelpLib.h>
3132
#include <Ppi/TpmInitialized.h>
3233
#include <Protocol/Tcg2Protocol.h> // For macro definitions in the header file
3334

TpmTestingPkg/TpmReplayPei/TpmReplayTcg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <Library/BaseMemoryLib.h>
1919
#include <Library/DebugLib.h>
2020
#include <Library/MemoryAllocationLib.h>
21-
#include <Library/Tpm2CommandLib.h>
21+
#include <Library/Tpm2HelpLib.h>
2222

2323
/**
2424
Unpacks TPM digest values.

TpmTestingPkg/TpmTestingPkg.dsc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
4040
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
4141
SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
42+
Tpm2HelpLib|SecurityPkg/Library/Tpm2HelpLib/Tpm2HelpLib.inf
4243
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
4344
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
4445

UefiTestingPkg/AuditTests/TpmEventLogAudit/TpmEventLogAudit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
1313
#include <Library/UefiApplicationEntryPoint.h>
1414
#include <Library/UefiBootServicesTableLib.h>
1515
#include <Library/BaseMemoryLib.h>
16-
#include <Library/Tpm2CommandLib.h>
16+
#include <Library/Tpm2HelpLib.h>
1717
#include <Protocol/Tcg2Protocol.h>
1818
#include <IndustryStandard/UefiTcgPlatform.h>
1919
#include "TpmEventLogXml.h"

UefiTestingPkg/AuditTests/TpmEventLogAudit/TpmEventLogAuditTestApp.inf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
ShellLib
3030
UefiBootServicesTableLib
3131
BaseMemoryLib
32-
Tpm2CommandLib
32+
Tpm2HelpLib
3333
XmlTreeLib
3434
XmlTreeQueryLib
3535

UefiTestingPkg/AuditTests/TpmEventLogAudit/TpmEventLogXml.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
2020
#include <Library/XmlTreeLib.h>
2121
#include <Library/XmlTreeQueryLib.h>
2222
#include <Library/ShellLib.h>
23-
#include <Library/Tpm2CommandLib.h>
23+
#include <Library/Tpm2HelpLib.h>
2424
#include <IndustryStandard/UefiTcgPlatform.h>
2525

2626
/**

0 commit comments

Comments
 (0)