summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library
diff options
context:
space:
mode:
authorZhiguang Liu <zhiguang.liu@intel.com>2022-11-01 09:33:15 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-03-10 08:23:56 +0000
commitbf0c14a562f2f60301031c4adfa8c47107b3ddfb (patch)
tree7787bc5e316b9806202c6d7327ed4a35299f6d02 /OvmfPkg/Library
parentfd1820b7ea09e53e404d6f56bb8bc4b51a5dd83e (diff)
downloadedk2-bf0c14a562f2f60301031c4adfa8c47107b3ddfb.tar.gz
edk2-bf0c14a562f2f60301031c4adfa8c47107b3ddfb.tar.bz2
edk2-bf0c14a562f2f60301031c4adfa8c47107b3ddfb.zip
OvmfPkg: Add CpuLib to module INFs that depend on UefiCpuLib.
There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib and UefiCpuPkg/UefiCpuLib will be merged to MdePkg/CpuLib. To avoid build failure, add CpuLib dependency to all modules that depend on UefiCpuLib. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Diffstat (limited to 'OvmfPkg/Library')
-rw-r--r--OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf1
-rw-r--r--OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c1
-rw-r--r--OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf1
3 files changed, 3 insertions, 0 deletions
diff --git a/OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf b/OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf
index e77ad7bc92..b1c936b960 100644
--- a/OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf
+++ b/OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf
@@ -46,6 +46,7 @@
BaseMemoryLib
PcdLib
UefiCpuLib
+ CpuLib
DebugAgentLib
IoLib
LocalApicLib
diff --git a/OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c b/OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c
index c580a28856..063875b34b 100644
--- a/OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c
+++ b/OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c
@@ -11,6 +11,7 @@
#include <Library/BaseMemoryLib.h>
#include <Library/PcdLib.h>
#include <Library/UefiCpuLib.h>
+#include <Library/CpuLib.h>
#include <Library/SynchronizationLib.h>
#include <Uefi/UefiBaseType.h>
#include <IndustryStandard/IntelTdx.h>
diff --git a/OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf b/OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
index e504bda0dd..83e3c8b842 100644
--- a/OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
+++ b/OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
@@ -37,6 +37,7 @@
BaseMemoryLib
PcdLib
UefiCpuLib
+ CpuLib
DebugAgentLib
IoLib
SynchronizationLib