[PATCH 1/4] UefiPayloadPkg: Add Fixed PCDs and use Macro to define the default value.


Zhiguang Liu
 

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.dong@intel.com>
Cc: 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 | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload=
Pkg.dsc
index bcedf1c746..ba54f2057f 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.dsc
+++ b/UefiPayloadPkg/UefiPayloadPkg.dsc
@@ -91,6 +91,13 @@
DEFINE EMU_VARIABLE_ENABLE =3D TRUE=0D
DEFINE DISABLE_RESET_SYSTEM =3D FALSE=0D
=0D
+ # Dfine the maximum size of the capsule image without a reset flag that =
the platform can support.=0D
+ DEFINE MAX_SIZE_NON_POPULATE_CAPSULE =3D 0xa00000=0D
+=0D
+ # Define RTC related register.=0D
+ DEFINE RTC_INDEX_REGISTER =3D 0x70=0D
+ DEFINE RTC_TARGET_REGISTER =3D 0x71=0D
+=0D
[BuildOptions]=0D
*_*_*_CC_FLAGS =3D -D DISABLE_NEW_DEPRECATED_INTERFACES=
=0D
GCC:*_UNIXGCC_*_CC_FLAGS =3D -DMDEPKG_NDEBUG=0D
@@ -324,7 +331,9 @@
!else=0D
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F=0D
!endif=0D
-=0D
+ gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_N=
ON_POPULATE_CAPSULE)=0D
+ gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)=
=0D
+ gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER=
)=0D
#=0D
# The following parameters are set by Library/PlatformHookLib=0D
#=0D
--=20
2.32.0.windows.2

Join devel@edk2.groups.io to automatically receive all group messages.