diff options
author | Zhiguang Liu <zhiguang.liu@intel.com> | 2021-08-06 10:15:47 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-08-09 04:05:44 +0000 |
commit | b40bdd6ecded8d8ce83ea01ab815fcaecace3979 (patch) | |
tree | de1de4f15a3f77b8e0803f87587bbec7184b259b /UefiPayloadPkg | |
parent | 3c6107758baf2f5923b9d1a5a3f64b8296881be1 (diff) | |
download | edk2-b40bdd6ecded8d8ce83ea01ab815fcaecace3979.tar.gz |
UefiPayloadPkg: Add Fixed PCDs and use Macro to define the default value.
Add the three PCDs as fixed at build PCD:
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule
gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister
gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister
The default value is defined as Macro, so it can be passed in at build
command.
Reviewed-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Diffstat (limited to 'UefiPayloadPkg')
-rw-r--r-- | UefiPayloadPkg/UefiPayloadPkg.dsc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayloadPkg.dsc index bcedf1c746..ba54f2057f 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -91,6 +91,13 @@ DEFINE EMU_VARIABLE_ENABLE = TRUE
DEFINE DISABLE_RESET_SYSTEM = FALSE
+ # Dfine the maximum size of the capsule image without a reset flag that the platform can support.
+ DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000
+
+ # Define RTC related register.
+ DEFINE RTC_INDEX_REGISTER = 0x70
+ DEFINE RTC_TARGET_REGISTER = 0x71
+
[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
@@ -324,7 +331,9 @@ !else
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
!endif
-
+ gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)
+ gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)
+ gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)
#
# The following parameters are set by Library/PlatformHookLib
#
|