diff options
author | Bob Feng <bob.c.feng@intel.com> | 2020-09-04 22:30:28 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-09-08 08:48:24 +0000 |
commit | 859e09523d66844d81f5f4a3d53f3cd96523c221 (patch) | |
tree | f4bfabcc826d421ffcc05f2c039f6c8da8f44907 /BaseTools/Source/Python/Workspace | |
parent | cdfc7ed34fd1ddfc9cb1dfbc339f940950638f8d (diff) | |
download | edk2-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/Workspace')
-rw-r--r-- | BaseTools/Source/Python/Workspace/DscBuildData.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index 1afbd3eefc..4a128c8a77 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -2584,7 +2584,7 @@ class DscBuildData(PlatformBuildClassObject): CApp = CApp + '\n'
for Pcd in StructuredPcds.values():
CApp = CApp + self.GenerateArrayAssignment(Pcd)
- for PcdName in StructuredPcds:
+ for PcdName in sorted(StructuredPcds.keys()):
Pcd = StructuredPcds[PcdName]
CApp = CApp + self.GenerateSizeFunction(Pcd)
CApp = CApp + self.GenerateDefaultValueAssignFunction(Pcd)
|