<div dir="ltr"><div dir="ltr">Hi<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 10, 2021 at 9:20 PM Stefan Berger <<a href="mailto:stefanb@linux.vnet.ibm.com">stefanb@linux.vnet.ibm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Add a NULL implementation of the library class TpmPlatformHierarchyLib<br>
<br>
Signed-off-by: Stefan Berger <<a href="mailto:stefanb@linux.ibm.com" target="_blank">stefanb@linux.ibm.com</a>><br></blockquote><div><br></div><div>This patch doesn't pass BaseTools/Scripts/PatchCheck.py</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
.../PeiDxeTpmPlatformHierarchyLib.c | 19 ++++++++++++<br>
.../PeiDxeTpmPlatformHierarchyLib.inf | 31 +++++++++++++++++++<br>
2 files changed, 50 insertions(+)<br>
create mode 100644 OvmfPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.c<br>
create mode 100644 OvmfPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf<br>
<br>
diff --git a/OvmfPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.c b/OvmfPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.c<br>
new file mode 100644<br>
index 0000000000..a4d38a1465<br>
--- /dev/null<br>
+++ b/OvmfPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.c<br>
@@ -0,0 +1,19 @@<br>
+/** @file<br>
+ Null TPM Platform Hierarchy configuration library.<br>
+<br>
+ This library provides stub functions for customizing the TPM's Platform Hierarchy.<br>
+<br>
+ Copyright (c) 2021, IBM Corporation.<br>
+ SPDX-License-Identifier: BSD-2-Clause-Patent<br>
+<br>
+**/<br>
+<br>
+#include <Uefi.h><br>
+<br>
+VOID<br>
+EFIAPI<br>
+ConfigureTpmPlatformHierarchy (<br>
+ )<br>
+{<br>
+ /* no nothing */<br>
+}<br>
diff --git a/OvmfPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf b/OvmfPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf<br>
new file mode 100644<br>
index 0000000000..f0c474d57c<br>
--- /dev/null<br>
+++ b/OvmfPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf<br>
@@ -0,0 +1,31 @@<br>
+### @file<br>
+#<br>
+# TPM Platform Hierarchy configuration library.<br>
+#<br>
+# This library provides functions for customizing the TPM's Platform Hierarchy<br>
+# Authorization Value (platformAuth) and Platform Hierarchy Authorization<br>
+# Policy (platformPolicy) can be defined through this function.<br>
+#<br>
+# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR><br>
+# Copyright (c) Microsoft Corporation.<BR><br>
+#<br>
+# SPDX-License-Identifier: BSD-2-Clause-Patent<br>
+#<br>
+###<br>
+<br>
+[Defines]<br>
+ INF_VERSION = 0x00010005<br>
+ BASE_NAME = PeiDxeTpmPlatformHierarchyLibNull<br>
+ FILE_GUID = 7794F92C-4E8E-4E57-9E4A-49A0764C7D73<br></blockquote><div><br></div><div>Looking at other files, I think it must be unique. (don't ask me why though)<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+ MODULE_TYPE = PEIM<br>
+ VERSION_STRING = 1.0<br>
+ LIBRARY_CLASS = TpmPlatformHierarchyLib|PEIM DXE_DRIVER<br>
+<br>
+[LibraryClasses]<br>
+ BaseLib<br>
+<br>
+[Packages]<br>
+ MdePkg/MdePkg.dec<br>
+<br>
+[Sources]<br>
+ PeiDxeTpmPlatformHierarchyLib.c<br>
-- <br>
2.31.1<br>
<br>
</blockquote></div></div>
<div width="1" style="color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p> You receive all messages sent to this group. <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/79183">View/Reply Online (#79183)</a> | | <a target="_blank" href="https://groups.io/mt/84798632/1813853">Mute This Topic</a> | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br> <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> | <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a> [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>