]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/MpInitLib: Add missing explicit PcdLib dependency
authorHao A Wu <hao.a.wu@intel.com>
Wed, 22 Apr 2020 06:50:24 +0000 (14:50 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 23 Apr 2020 08:48:54 +0000 (08:48 +0000)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2632

Both PEI and DXE instances of the MpInitLib are using PcdLib APIs, but
none of them list the dependency of the PcdLib in INF & header files.

This commit will explicitly add such dependency in .H and .INF files.

Test done:
Library level build pass for VS2015x86 tool chain

Cc: Eric Dong <eric.dong@intel.com>
Signed-off-by: Hao A Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
UefiCpuPkg/Library/MpInitLib/MpLib.h
UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf

index a51a9ec1d28bad610dfb60966a6e7dbe0e08e0be..9907f4157b099a0647f838d32e75405e8578a34a 100644 (file)
@@ -51,6 +51,7 @@
   UefiBootServicesTableLib\r
   DebugAgentLib\r
   SynchronizationLib\r
+  PcdLib\r
 \r
 [Protocols]\r
   gEfiTimerArchProtocolGuid                     ## SOMETIMES_CONSUMES\r
index 74e919dae07747ea8ca87d4926a862fd43b2f730..a8ca03efb8e3d8e75363dd66ad77fcb740b1c8ed 100755 (executable)
@@ -31,6 +31,7 @@
 #include <Library/SynchronizationLib.h>\r
 #include <Library/MtrrLib.h>\r
 #include <Library/HobLib.h>\r
+#include <Library/PcdLib.h>\r
 \r
 #include <Guid/MicrocodePatchHob.h>\r
 \r
index d78d328b425226868b9f375f607e29f8d77d14b9..89ee9a79d8c5266273ad1ae71a5c5327ba25bdec 100644 (file)
@@ -50,6 +50,7 @@
   UefiCpuLib\r
   SynchronizationLib\r
   PeiServicesLib\r
+  PcdLib\r
 \r
 [Pcd]\r
   gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber        ## CONSUMES\r