summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
diff options
context:
space:
mode:
authorBob Feng <bob.c.feng@intel.com>2020-09-04 22:30:28 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-09-08 08:48:24 +0000
commit859e09523d66844d81f5f4a3d53f3cd96523c221 (patch)
treef4bfabcc826d421ffcc05f2c039f6c8da8f44907 /BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
parentcdfc7ed34fd1ddfc9cb1dfbc339f940950638f8d (diff)
downloadedk2-859e09523d66844d81f5f4a3d53f3cd96523c221.tar.gz
edk2-859e09523d66844d81f5f4a3d53f3cd96523c221.tar.bz2
edk2-859e09523d66844d81f5f4a3d53f3cd96523c221.zip
BaseTools: Sort the Pcd set when generating the VPD binary
If VPD PcdNvStoreDefaultValueBuffer is used, all DynamicHii and DynamicExHii PCD value will be generated into that VPD. In order to generate the same VPD binary file in every build, sort the Pcd set when generating VPD. Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/PlatformAutoGen.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/PlatformAutoGen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py b/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
index af66c48c7d..26ab8e7f36 100644
--- a/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
@@ -253,7 +253,7 @@ class PlatformAutoGen(AutoGen):
VariableInfo.SetVpdRegionMaxSize(VpdRegionSize)
VariableInfo.SetVpdRegionOffset(VpdRegionBase)
Index = 0
- for Pcd in DynamicPcdSet:
+ for Pcd in sorted(DynamicPcdSet):
pcdname = ".".join((Pcd.TokenSpaceGuidCName, Pcd.TokenCName))
for SkuName in Pcd.SkuInfoList:
Sku = Pcd.SkuInfoList[SkuName]