From 235aa246a4c133d70ad176dd9b4466c05d9187ec Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Sat, 10 Mar 2018 20:49:56 +0100 Subject: [PATCH 1/1] OvmfPkg/LockBoxLib: list "LockBoxLib.h" in the INF files Among other things, the header file declares the AllocateAcpiNvsPool() function. This function is called from the "LockBoxLib.c" source file (in the implementation of the SaveLockBox() library API), which is built into both library instances. AllocateAcpiNvsPool() is implemented separately per library instance, in "LockBoxBase.c" and "LockBoxDxe.c", respectively. (In the LockBoxBaseLib instance, the AllocateAcpiNvsPool() function is never expected to be called -- the public SaveLockBox() API should never be called before the DXE phase --, we just have to provide a stub for linking purposes.) Cc: Ard Biesheuvel Cc: Jordan Justen Suggested-by: Michael Kinney Ref: http://mid.mail-archive.com/E92EE9817A31E24EB0585FDF735412F56327F7D3@ORSMSX113.amr.corp.intel.com Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Reviewed-by: Ard Biesheuvel Reviewed-by: Jordan Justen --- OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf | 1 + OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf | 1 + 2 files changed, 2 insertions(+) diff --git a/OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf b/OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf index 81c893e4cb..0645c02c17 100644 --- a/OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf +++ b/OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf @@ -29,6 +29,7 @@ [Sources] LockBoxBase.c LockBoxLib.c + LockBoxLib.h [Packages] MdePkg/MdePkg.dec diff --git a/OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf b/OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf index eb03f4f546..ce6b49aea4 100644 --- a/OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf +++ b/OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf @@ -29,6 +29,7 @@ [Sources] LockBoxDxe.c LockBoxLib.c + LockBoxLib.h [Packages] MdePkg/MdePkg.dec -- 2.39.2