From: Laszlo Ersek Date: Sat, 10 Mar 2018 19:49:56 +0000 (+0100) Subject: OvmfPkg/LockBoxLib: list "LockBoxLib.h" in the INF files X-Git-Tag: edk2-stable201903~2178 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=235aa246a4c133d70ad176dd9b4466c05d9187ec;hp=c63bcc2e4b96cdcf7ab93fed4ed850f6562a172b 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 --- 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