summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2018-03-10 20:49:56 +0100
committerLaszlo Ersek <lersek@redhat.com>2018-03-13 14:30:43 +0100
commit235aa246a4c133d70ad176dd9b4466c05d9187ec (patch)
tree72a5701c702e69f07bbc17fc99132235b4902d92 /OvmfPkg/Library
parentc63bcc2e4b96cdcf7ab93fed4ed850f6562a172b (diff)
downloadedk2-235aa246a4c133d70ad176dd9b4466c05d9187ec.tar.gz
edk2-235aa246a4c133d70ad176dd9b4466c05d9187ec.tar.bz2
edk2-235aa246a4c133d70ad176dd9b4466c05d9187ec.zip
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 <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Suggested-by: Michael Kinney <michael.d.kinney@intel.com> Ref: http://mid.mail-archive.com/E92EE9817A31E24EB0585FDF735412F56327F7D3@ORSMSX113.amr.corp.intel.com Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/Library')
-rw-r--r--OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf1
-rw-r--r--OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf1
2 files changed, 2 insertions, 0 deletions
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