Reviewed-by: Ray Ni <ray...@intel.com>

> -----Original Message-----
> From: Liu, Zhiguang <zhiguang....@intel.com>
> Sent: Friday, August 6, 2021 12:31 PM
> To: devel@edk2.groups.io
> Cc: Dong, Guo <guo.d...@intel.com>; Ni, Ray <ray...@intel.com>; Ma, Maurice 
> <maurice...@intel.com>; You, Benjamin
> <benjamin....@intel.com>
> Subject: [PATCH 1/4] 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.
> 
> Cc: Guo Dong <guo.d...@intel.com>
> Cc: Ray Ni <ray...@intel.com>
> Cc: Maurice Ma <maurice...@intel.com>
> Cc: Benjamin You <benjamin....@intel.com>
> 
> Signed-off-by: Zhiguang Liu <zhiguang....@intel.com>
> ---
>  UefiPayloadPkg/UefiPayloadPkg.dsc | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> 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
> 
>    #
> 
> --
> 2.32.0.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#78805): https://edk2.groups.io/g/devel/message/78805
Mute This Topic: https://groups.io/mt/84701789/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to