diff options
author | From: Yunhua Feng <yunhuax.feng@intel.com> | 2018-01-20 14:22:43 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-01-21 16:28:45 +0800 |
commit | a676a24656546a7fc722868fb75cd178c003056a (patch) | |
tree | 7d5c52a9008f08d2d20a169860ad035de61ca9d9 /BaseTools/Source/Python/build/BuildReport.py | |
parent | 6735645d9c09d9a391ea96233d3addd3c2b30843 (diff) | |
download | edk2-a676a24656546a7fc722868fb75cd178c003056a.tar.gz edk2-a676a24656546a7fc722868fb75cd178c003056a.tar.bz2 edk2-a676a24656546a7fc722868fb75cd178c003056a.zip |
BaseTools: Optimizing DscDefaultValue process in BuildReport
DscDefaultValue from Dsc file has been parsed by ValueExpressionEx
when Dsc file parse, so only DscDefaultValue from FDF file need
ValueExpressionEx parse
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build/BuildReport.py')
-rw-r--r-- | BaseTools/Source/Python/build/BuildReport.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py index d6e943d2f1..f2a6e6d87e 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -952,9 +952,9 @@ class PcdReport(object): #
DecDefaultValue = self.DecPcdDefault.get((Pcd.TokenCName, Pcd.TokenSpaceGuidCName, DecType))
DscDefaultValue = self.DscPcdDefault.get((Pcd.TokenCName, Pcd.TokenSpaceGuidCName))
- DscDefaultValBak= DscDefaultValue
+ DscDefaultValBak = DscDefaultValue
DscDefaultValue = self.FdfPcdSet.get((Pcd.TokenCName, Key), DscDefaultValue)
- if DscDefaultValue:
+ if DscDefaultValue != DscDefaultValBak:
DscDefaultValue = ValueExpressionEx(DscDefaultValue, Pcd.DatumType, self._GuidDict)(True)
InfDefaultValue = None
|