summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/DscBuildData.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2018-12-13 16:16:25 +0800
committerBobCF <bob.c.feng@intel.com>2018-12-18 10:45:31 +0800
commit643556fc484397364f92fcfe7aed8abe1c082de0 (patch)
tree7e30a1a0a71d293949aa1acf4699fc799bff3977 /BaseTools/Source/Python/Workspace/DscBuildData.py
parent4c6e6f9f75a7b86d7760f5409a24b3c20759ccb9 (diff)
downloadedk2-643556fc484397364f92fcfe7aed8abe1c082de0.tar.gz
edk2-643556fc484397364f92fcfe7aed8abe1c082de0.tar.bz2
edk2-643556fc484397364f92fcfe7aed8abe1c082de0.zip
BaseTools: Fixed metafile parser issues
https://bugzilla.tianocore.org/show_bug.cgi?id=1406 This patch is going to fix the regressions that is introduced by commit 2f818ed0fb57d98985d151781a2ce9b8683129ee The internal array for storing the metadata info should be cached so that the meta file is parsed only once in one build. 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/DscBuildData.py')
-rw-r--r--BaseTools/Source/Python/Workspace/DscBuildData.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py
index 22a56bf6c7..7f6e966b5f 100644
--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
@@ -881,7 +881,7 @@ class DscBuildData(PlatformBuildClassObject):
return self._LibraryClasses
def _ValidatePcd(self, PcdCName, TokenSpaceGuid, Setting, PcdType, LineNo):
- if self._DecPcds is None:
+ if not self._DecPcds:
FdfInfList = []
if GlobalData.gFdfParser: