From 8aa4db4b807ea7de395acd4018a139745327e374 Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Wed, 7 Feb 2018 10:01:59 +0800 Subject: 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 Cc: Liming Gao Reviewed-by: Liming Gao --- BaseTools/Source/Python/Workspace/BuildClassObject.py | 1 + 1 file changed, 1 insertion(+) (limited to 'BaseTools/Source/Python/Workspace/BuildClassObject.py') 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 -- cgit v1.2.3