]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiPayloadPkg: Add Fixed PCDs and use Macro to define the default value.
authorZhiguang Liu <zhiguang.liu@intel.com>
Fri, 6 Aug 2021 02:15:47 +0000 (10:15 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 9 Aug 2021 04:05:44 +0000 (04:05 +0000)
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>
UefiPayloadPkg/UefiPayloadPkg.dsc

index bcedf1c746b4caa305f0f3fab99714e3bad38fb8..ba54f2057f62fef5ff42b736aca402d4fcbcc9f8 100644 (file)
   DEFINE EMU_VARIABLE_ENABLE   = TRUE\r
   DEFINE DISABLE_RESET_SYSTEM  = FALSE\r
 \r
+  # Dfine the maximum size of the capsule image without a reset flag that the platform can support.\r
+  DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000\r
+\r
+  # Define RTC related register.\r
+  DEFINE RTC_INDEX_REGISTER = 0x70\r
+  DEFINE RTC_TARGET_REGISTER = 0x71\r
+\r
 [BuildOptions]\r
   *_*_*_CC_FLAGS                 = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
   GCC:*_UNIXGCC_*_CC_FLAGS       = -DMDEPKG_NDEBUG\r
 !else\r
   gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
 !endif\r
-\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)\r
+  gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)\r
+  gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)\r
   #\r
   # The following parameters are set by Library/PlatformHookLib\r
   #\r