From: Laszlo Ersek Date: Thu, 12 Apr 2018 00:00:13 +0000 (+0200) Subject: ArmPlatformPkg/PL031RealTimeClockLib: depend on gEfiCpuArchProtocolGuid X-Git-Tag: edk2-stable201903~1917 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=221c4f626f357ed9fa5e5133514b339d5378a782 ArmPlatformPkg/PL031RealTimeClockLib: depend on gEfiCpuArchProtocolGuid The RealTimeClockLib class is declared under EmbeddedPkg, so that platforms can provide the internals for the EmbeddedPkg/RealTimeClockRuntimeDxe driver. In turn the driver produces the Real Time Clock Arch Protocol, without which UEFI drivers cannot be dispatched. The PL031RealTimeClockLib instance calls gDS->SetMemorySpaceAttributes() in the LibRtcInitialize() public function. This DXE service depends on the CPU Arch Protocol. Add it to the depex. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Steve Capper Cc: Supreeth Venkatesh Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Reviewed-by: Ard Biesheuvel Tested-by: Steve Capper Reviewed-by: Leif Lindholm --- diff --git a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf index a3e4f73e7d..3d62aeabd6 100644 --- a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf +++ b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf @@ -19,7 +19,7 @@ FILE_GUID = 470DFB96-E205-4515-A75E-2E60F853E79D MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = RealTimeClockLib + LIBRARY_CLASS = RealTimeClockLib|DXE_RUNTIME_DRIVER [Sources.common] PL031RealTimeClockLib.c @@ -44,3 +44,6 @@ [Pcd] gArmPlatformTokenSpaceGuid.PcdPL031RtcBase gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy + +[Depex.common.DXE_RUNTIME_DRIVER] + gEfiCpuArchProtocolGuid