2010-02-24 08:21:16 +08:00
|
|
|
## @file
|
2008-10-28 17:45:52 +08:00
|
|
|
# Instance of PCD Library using PCD Protocol.
|
2007-06-22 14:57:39 +08:00
|
|
|
#
|
2014-08-27 17:33:09 +08:00
|
|
|
# There are two PCD protocols as follows:
|
2009-11-24 11:29:57 +08:00
|
|
|
# 1) PCD_PROTOCOL
|
|
|
|
# It is EDKII implementation which support Dynamic/DynamicEx Pcds.
|
|
|
|
# 2) EFI_PCD_PROTOCOL
|
2018-06-27 21:11:33 +08:00
|
|
|
# It is defined by PI specification 1.2, Vol 3 which only support dynamicEx
|
2009-11-24 11:29:57 +08:00
|
|
|
# type Pcd.
|
2008-10-28 17:45:52 +08:00
|
|
|
#
|
2009-11-24 11:29:57 +08:00
|
|
|
# For dynamicEx type PCD, it is compatible between PCD_PROTOCOL and EFI_PCD_PROTOCOL.
|
|
|
|
#
|
|
|
|
# This library instance uses the PCD_PROTOCOL to handle dynamic PCD request and use
|
|
|
|
# EFI_PCD_PROTOCOL to handle dynamicEx type PCD.
|
|
|
|
#
|
2018-06-27 21:11:33 +08:00
|
|
|
# Note: A driver of type DXE_RUNTIME_DRIVER and DXE_SMM_DRIVER can only use this DxePcdLib
|
|
|
|
# in their initialization without any issues to access Dynamic and DynamicEx PCD. They can't
|
2014-11-19 10:47:02 +08:00
|
|
|
# access Dynamic and DynamicEx PCD in the implementation of runtime services and SMI handlers.
|
2018-06-27 21:11:33 +08:00
|
|
|
# Because EFI_PCD_PROTOCOL is DXE protocol that is not aviable in OS runtime phase.
|
2014-11-19 10:47:02 +08:00
|
|
|
#
|
2018-06-27 21:11:33 +08:00
|
|
|
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
2007-06-22 14:57:39 +08:00
|
|
|
#
|
2019-04-04 07:06:00 +08:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-06-22 14:57:39 +08:00
|
|
|
#
|
|
|
|
#
|
2010-02-24 08:21:16 +08:00
|
|
|
##
|
2007-06-22 14:57:39 +08:00
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 0x00010005
|
|
|
|
BASE_NAME = DxePcdLib
|
2014-08-27 17:33:09 +08:00
|
|
|
MODULE_UNI_FILE = DxePcdLib.uni
|
2007-06-22 14:57:39 +08:00
|
|
|
FILE_GUID = af97eb89-4cc6-45f8-a514-ca025b346480
|
|
|
|
MODULE_TYPE = DXE_DRIVER
|
|
|
|
VERSION_STRING = 1.0
|
2018-07-02 09:21:05 +08:00
|
|
|
LIBRARY_CLASS = PcdLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER SMM_CORE UEFI_APPLICATION UEFI_DRIVER
|
2007-06-22 14:57:39 +08:00
|
|
|
|
|
|
|
#
|
2018-07-02 09:21:05 +08:00
|
|
|
# VALID_ARCHITECTURES = IA32 X64 EBC
|
2007-06-22 14:57:39 +08:00
|
|
|
#
|
|
|
|
|
2010-02-24 08:21:16 +08:00
|
|
|
[Sources]
|
2007-06-22 14:57:39 +08:00
|
|
|
DxePcdLib.c
|
|
|
|
|
|
|
|
|
|
|
|
[Packages]
|
|
|
|
MdePkg/MdePkg.dec
|
|
|
|
|
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
BaseMemoryLib
|
|
|
|
UefiBootServicesTableLib
|
|
|
|
DebugLib
|
|
|
|
|
|
|
|
|
|
|
|
[Protocols]
|
2014-08-27 17:33:09 +08:00
|
|
|
gPcdProtocolGuid ## SOMETIMES_CONSUMES
|
2009-11-24 11:29:57 +08:00
|
|
|
gEfiPcdProtocolGuid ## CONSUMES
|
2013-11-20 08:44:25 +08:00
|
|
|
gGetPcdInfoProtocolGuid ## SOMETIMES_CONSUMES
|
|
|
|
gEfiGetPcdInfoProtocolGuid ## SOMETIMES_CONSUMES
|
2011-07-27 16:54:57 +08:00
|
|
|
|
|
|
|
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
|
2009-11-24 11:29:57 +08:00
|
|
|
gEfiPcdProtocolGuid
|
2008-08-18 17:24:07 +08:00
|
|
|
|