mirror of https://github.com/acidanthera/audk.git
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:
parent
47b1d61169
commit
6f415f8af4
|
@ -1,7 +1,7 @@
|
|||
## @file
|
||||
# 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
|
||||
#
|
||||
|
@ -40,4 +40,4 @@
|
|||
gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64
|
||||
|
||||
[Depex]
|
||||
gFdtClientProtocolGuid
|
||||
gFdtClientProtocolGuid AND gEfiCpuArchProtocolGuid
|
||||
|
|
Loading…
Reference in New Issue