summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/BuildClassObject.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2018-03-19 12:05:19 +0800
committerLiming Gao <liming.gao@intel.com>2018-03-19 12:28:05 +0800
commit065a7d406cf8ebc71edb2afc66a70f11d9e83a58 (patch)
tree1b2dbb3a8cd7697b8469f1a606e85618e9fb758d /BaseTools/Source/Python/Workspace/BuildClassObject.py
parentae38c9765a27264ecea03c6430b956b74a427213 (diff)
downloadedk2-065a7d406cf8ebc71edb2afc66a70f11d9e83a58.tar.gz
edk2-065a7d406cf8ebc71edb2afc66a70f11d9e83a58.tar.bz2
edk2-065a7d406cf8ebc71edb2afc66a70f11d9e83a58.zip
BaseTool: Error handling for PCD datumtype.
Report error if the Pcd DatumType is wrong. 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/BuildClassObject.py')
-rw-r--r--BaseTools/Source/Python/Workspace/BuildClassObject.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Workspace/BuildClassObject.py b/BaseTools/Source/Python/Workspace/BuildClassObject.py
index 1352fa21c8..a306dc0b23 100644
--- a/BaseTools/Source/Python/Workspace/BuildClassObject.py
+++ b/BaseTools/Source/Python/Workspace/BuildClassObject.py
@@ -69,6 +69,7 @@ class PcdClassObject(object):
if IsDsc:
self.DscDefaultValue = Value
self.PcdValueFromComm = ""
+ self.DefinitionPosition = ("","")
## Convert the class to a string
#
@@ -178,6 +179,7 @@ class StructurePcd(PcdClassObject):
self.expressions = PcdObject.expressions if PcdObject.expressions else self.expressions
self.DscRawValue = PcdObject.DscRawValue if PcdObject.DscRawValue else self.DscRawValue
self.PcdValueFromComm = PcdObject.PcdValueFromComm if PcdObject.PcdValueFromComm else self.PcdValueFromComm
+ self.DefinitionPosition = PcdObject.DefinitionPosition if PcdObject.DefinitionPosition else self.DefinitionPosition
if type(PcdObject) is StructurePcd:
self.StructuredPcdIncludeFile = PcdObject.StructuredPcdIncludeFile if PcdObject.StructuredPcdIncludeFile else self.StructuredPcdIncludeFile
self.PackageDecs = PcdObject.PackageDecs if PcdObject.PackageDecs else self.PackageDecs