UefiCpuPkg/MpInitLib: Add missing explicit PcdLib dependency

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>
This commit is contained in:
Hao A Wu 2020-04-22 14:50:24 +08:00 committed by mergify[bot]
parent 3a3a3af4a2
commit d5339c04d7
3 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@
UefiBootServicesTableLib
DebugAgentLib
SynchronizationLib
PcdLib
[Protocols]
gEfiTimerArchProtocolGuid ## SOMETIMES_CONSUMES

View File

@ -31,6 +31,7 @@
#include <Library/SynchronizationLib.h>
#include <Library/MtrrLib.h>
#include <Library/HobLib.h>
#include <Library/PcdLib.h>
#include <Guid/MicrocodePatchHob.h>

View File

@ -50,6 +50,7 @@
UefiCpuLib
SynchronizationLib
PeiServicesLib
PcdLib
[Pcd]
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES