summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/DecBuildData.py
diff options
context:
space:
mode:
authorBobCF <bob.c.feng@intel.com>2018-02-28 13:59:20 +0800
committerLiming Gao <liming.gao@intel.com>2018-02-28 16:47:27 +0800
commit79820e32ec96b560bc0d5cd437990f600a2ddce7 (patch)
tree77ccbb2e82109b86612f89b98cd62c527d2acd77 /BaseTools/Source/Python/Workspace/DecBuildData.py
parent0a57a9782bef8ee11d8de937c149eb7ff22647c9 (diff)
downloadedk2-79820e32ec96b560bc0d5cd437990f600a2ddce7.tar.gz
edk2-79820e32ec96b560bc0d5cd437990f600a2ddce7.tar.bz2
edk2-79820e32ec96b560bc0d5cd437990f600a2ddce7.zip
BaseTool: GUID format PCD value assignment fail in Structure PCD field
If Structure PCD field is assigned as GUID format, its data type should be the fixed GUID structure. No flexible check is required. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DecBuildData.py')
-rw-r--r--BaseTools/Source/Python/Workspace/DecBuildData.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/DecBuildData.py b/BaseTools/Source/Python/Workspace/DecBuildData.py
index 18101a0add..ee00ec0719 100644
--- a/BaseTools/Source/Python/Workspace/DecBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DecBuildData.py
@@ -15,6 +15,7 @@ from Common.String import *
from Common.DataType import *
from Common.Misc import *
from types import *
+from collections import OrderedDict
from Workspace.BuildClassObject import PackageBuildClassObject, StructurePcd, PcdClassObject
@@ -367,7 +368,7 @@ class DecBuildData(PackageBuildClassObject):
def ProcessStructurePcd(self, StructurePcdRawDataSet):
- s_pcd_set = dict()
+ s_pcd_set = OrderedDict()
for s_pcd,LineNo in StructurePcdRawDataSet:
if s_pcd.TokenSpaceGuidCName not in s_pcd_set:
s_pcd_set[s_pcd.TokenSpaceGuidCName] = []