ArmVirtPkg: Fix depex in kvmtool guest Rtc library

The Rtc library for the kvmtool guest firmware configures the
RTC controller address range as runtime memory by calling the
gDS->SetMemorySpaceAttributes().
The SetMemorySpaceAttributes() function has a dependency on
the CPU Arch Protocol. If the CPU Arch Protocol is not
installed the call to set the memory attributes fails with
error code EFI_NOT_AVAILABLE_YET.

Therefore, set the library dependency on the CPU Arch protocol.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
Sami Mujawar 2022-03-01 17:29:51 +00:00 committed by mergify[bot]
parent 47b1d61169
commit 6f415f8af4
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
## @file ## @file
# FDT client library for motorola,mc146818 RTC driver # FDT client library for motorola,mc146818 RTC driver
# #
# Copyright (c) 2020, ARM Limited. All rights reserved.<BR> # Copyright (c) 2020 - 2023, ARM Limited. All rights reserved.<BR>
# #
# SPDX-License-Identifier: BSD-2-Clause-Patent # SPDX-License-Identifier: BSD-2-Clause-Patent
# #
@ -40,4 +40,4 @@
gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64
[Depex] [Depex]
gFdtClientProtocolGuid gFdtClientProtocolGuid AND gEfiCpuArchProtocolGuid