]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: Add CpuLib to module INFs that depend on UefiCpuLib.
authorYu Pu <yu.pu@intel.com>
Mon, 28 Mar 2022 15:16:27 +0000 (23:16 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 6 May 2022 07:48:15 +0000 (07:48 +0000)
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>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Yu Pu <yu.pu@intel.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
OvmfPkg/Sec/SecMain.c
OvmfPkg/Sec/SecMain.inf

index 8949d10157087ba485dfd35aa70d7cbf761cb98d..89371361cd05ce906a31ea849679d837ee181247 100644 (file)
@@ -17,6 +17,7 @@
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/PeiServicesLib.h>\r
 #include <Library/PcdLib.h>\r
+#include <Library/CpuLib.h>\r
 #include <Library/UefiCpuLib.h>\r
 #include <Library/DebugAgentLib.h>\r
 #include <Library/IoLib.h>\r
index 27100595aecaa17e2b0702d5521a8d9a4376be89..1557b5f4a84e9bce22ea96b3cb6e269b5b331610 100644 (file)
@@ -44,6 +44,7 @@
   BaseMemoryLib\r
   PeiServicesLib\r
   PcdLib\r
+  CpuLib\r
   UefiCpuLib\r
   DebugAgentLib\r
   IoLib\r