summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/BuildClassObject.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2018-01-29 14:09:36 +0800
committerLiming Gao <liming.gao@intel.com>2018-02-01 09:21:45 +0800
commit81add864f4af238a2dfb702904a6abec12738b9d (patch)
tree09c4e62ecbc1e16db17b125544fb2ac5e4d07c38 /BaseTools/Source/Python/Workspace/BuildClassObject.py
parent5db9414cc1b9b449c70a974f0aa0d17b41d09629 (diff)
downloadedk2-81add864f4af238a2dfb702904a6abec12738b9d.tar.gz
edk2-81add864f4af238a2dfb702904a6abec12738b9d.tar.bz2
edk2-81add864f4af238a2dfb702904a6abec12738b9d.zip
BaseTools: Support multiple .h file
for structure Pcd declaration in DEC file. 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, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/BuildClassObject.py b/BaseTools/Source/Python/Workspace/BuildClassObject.py
index 3afb27a9c0..0e1161c96f 100644
--- a/BaseTools/Source/Python/Workspace/BuildClassObject.py
+++ b/BaseTools/Source/Python/Workspace/BuildClassObject.py
@@ -115,7 +115,7 @@ class StructurePcd(PcdClassObject):
if validlists is None: validlists=[]
if expressions is None : expressions=[]
super(StructurePcd, self).__init__(Name, Guid, Type, DatumType, Value, Token, MaxDatumSize, SkuInfoList, IsOverrided, GuidValue, validateranges, validlists, expressions)
- self.StructuredPcdIncludeFile = StructuredPcdIncludeFile
+ self.StructuredPcdIncludeFile = [] if StructuredPcdIncludeFile is None else StructuredPcdIncludeFile
self.PackageDecs = Packages
self.DefaultStoreName = [default_store]
self.DefaultValues = collections.OrderedDict({})