diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2018-02-07 10:01:59 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-02-08 11:09:42 +0800 |
commit | 8aa4db4b807ea7de395acd4018a139745327e374 (patch) | |
tree | 4dda3b284ed27dd946e5dc0a9793cb3862540334 /BaseTools/Source/Python/Workspace/BuildClassObject.py | |
parent | c60d751b73108e6b1ffe94722ef3efcdbcf3151c (diff) | |
download | edk2-8aa4db4b807ea7de395acd4018a139745327e374.tar.gz edk2-8aa4db4b807ea7de395acd4018a139745327e374.tar.bz2 edk2-8aa4db4b807ea7de395acd4018a139745327e374.zip |
BaseTool: Fixed Pcd issues.
1. Check variable offset when merging Hii Pcds
2. Fixed the issue of Hii value inherit with default store.
3. Error handling for incorrect structure pcd declare.
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.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Workspace/BuildClassObject.py b/BaseTools/Source/Python/Workspace/BuildClassObject.py index 0e1161c96f..f499cbd58b 100644 --- a/BaseTools/Source/Python/Workspace/BuildClassObject.py +++ b/BaseTools/Source/Python/Workspace/BuildClassObject.py @@ -114,6 +114,7 @@ class StructurePcd(PcdClassObject): if validateranges is None: validateranges=[]
if validlists is None: validlists=[]
if expressions is None : expressions=[]
+ if Packages is None : Packages = []
super(StructurePcd, self).__init__(Name, Guid, Type, DatumType, Value, Token, MaxDatumSize, SkuInfoList, IsOverrided, GuidValue, validateranges, validlists, expressions)
self.StructuredPcdIncludeFile = [] if StructuredPcdIncludeFile is None else StructuredPcdIncludeFile
self.PackageDecs = Packages
|