]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/PL031RealTimeClockLib: depend on gEfiCpuArchProtocolGuid
authorLaszlo Ersek <lersek@redhat.com>
Thu, 12 Apr 2018 00:00:13 +0000 (02:00 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 12 Apr 2018 19:24:39 +0000 (21:24 +0200)
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 <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Steve Capper <steve.capper@linaro.org>
Cc: Supreeth Venkatesh <Supreeth.Venkatesh@arm.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Steve Capper <steve.capper@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf

index a3e4f73e7d055aebeae6d68aa4566f4f241d2c9a..3d62aeabd670acc062f543f63e505ddf5c8c7ab7 100644 (file)
@@ -19,7 +19,7 @@
   FILE_GUID                      = 470DFB96-E205-4515-A75E-2E60F853E79D\r
   MODULE_TYPE                    = BASE\r
   VERSION_STRING                 = 1.0\r
   FILE_GUID                      = 470DFB96-E205-4515-A75E-2E60F853E79D\r
   MODULE_TYPE                    = BASE\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = RealTimeClockLib\r
+  LIBRARY_CLASS                  = RealTimeClockLib|DXE_RUNTIME_DRIVER\r
 \r
 [Sources.common]\r
   PL031RealTimeClockLib.c\r
 \r
 [Sources.common]\r
   PL031RealTimeClockLib.c\r
@@ -44,3 +44,6 @@
 [Pcd]\r
   gArmPlatformTokenSpaceGuid.PcdPL031RtcBase\r
   gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy\r
 [Pcd]\r
   gArmPlatformTokenSpaceGuid.PcdPL031RtcBase\r
   gArmPlatformTokenSpaceGuid.PcdPL031RtcPpmAccuracy\r
+\r
+[Depex.common.DXE_RUNTIME_DRIVER]\r
+  gEfiCpuArchProtocolGuid\r