On 9/18/21 4:48 AM, Sami Mujawar wrote:
Hi Stefan,

Thank you for this patch.

I have a few minor comments marked inline as [SAMI].

Regards,

Sami Mujawar


On 16/09/2021 10:17 PM, Stefan Berger wrote:
From: Stefan Berger <stef...@linux.vnet.ibm.com>

Add a NULL implementation of the library class TpmPlatformHierarchyLib.
[SAMI] Is it possible to add a link to the bugzilla
(https://bugzilla.tianocore.org/show_bug.cgi?id=3510), please?
Also, would it be possible to place 'PeiDxeTpmPlatformHierarchyLibNull'
in SecurityPkg (i.e. if this library can be useful for other
architectures).


Yes. I didn't put it there because it was 'specialized' for ARM, but I don't mind moving it there on next round.


Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org>
Cc: Leif Lindholm <l...@nuviainc.com>
Cc: Sami Mujawar <sami.muja...@arm.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Signed-off-by: Stefan Berger <stef...@linux.ibm.com>
---
  ArmVirtPkg/ArmVirtPkg.dec                     |  1 +
  .../Include/Library/TpmPlatformHierarchyLib.h | 27 +++++++++++++++++
  .../PeiDxeTpmPlatformHierarchyLib.c           | 22 ++++++++++++++
  .../PeiDxeTpmPlatformHierarchyLib.inf         | 30 +++++++++++++++++++
  4 files changed, 80 insertions(+)
  create mode 100644 ArmVirtPkg/Include/Library/TpmPlatformHierarchyLib.h   create mode 100644 ArmVirtPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.c   create mode 100644 ArmVirtPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf

diff --git a/ArmVirtPkg/ArmVirtPkg.dec b/ArmVirtPkg/ArmVirtPkg.dec
index 4e4d758015..f3bdca118b 100644
--- a/ArmVirtPkg/ArmVirtPkg.dec
+++ b/ArmVirtPkg/ArmVirtPkg.dec
@@ -27,6 +27,7 @@


  [LibraryClasses]

    ArmVirtMemInfoLib|Include/Library/ArmVirtMemInfoLib.h

+ TpmPlatformHierarchyLib|Include/Library/TpmPlatformHierarchyLib.h
[SAMI] The file 'ArmVirtPkg/Include/Library/TpmPlatformHierarchyLib.h'
appears to be a copy of the header file
SecurityPkg/Include/Library/TpmPlatformHierarchyLib.h. Is this needed
here or we could reference the one from SecurityPkg?

I added it since one of the test builds complaint about a missing header file. This silenced it. If we move the NULL implementation to SecruityPkg, then we won't need this anymore.




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#80859): https://edk2.groups.io/g/devel/message/80859
Mute This Topic: https://groups.io/mt/85662429/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to