diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2019-01-16 18:48:46 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-01-21 18:03:31 +0800 |
commit | 350c9ae081a54628e2ccee9fc2d3617f670ba4aa (patch) | |
tree | 14a8927df71d7b2a6ec9896dc83ecd4c6b1725ec /BaseTools/Source/Python/build/BuildReport.py | |
parent | b298567268c42ce40e1872ca3e9352b5774b0d9a (diff) | |
download | edk2-350c9ae081a54628e2ccee9fc2d3617f670ba4aa.tar.gz edk2-350c9ae081a54628e2ccee9fc2d3617f670ba4aa.tar.bz2 edk2-350c9ae081a54628e2ccee9fc2d3617f670ba4aa.zip |
BaseTools: Fix build report issue.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1472
The Pcd Array feature changes the Pcd Default value
data structure which is used by build report. This
patch is going to update build report to adapt that change.
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/build/BuildReport.py')
-rw-r--r-- | BaseTools/Source/Python/build/BuildReport.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py index 654a69e05c..ae37a6ce0e 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -1245,9 +1245,11 @@ class PcdReport(object): Value = "0x{:X} ({})".format(int(Value, 0), Value)
FileWrite(File, ' %*s = %s' % (self.MaxLen + 19, 'DEC DEFAULT', Value))
if IsStructure:
- self.PrintStructureInfo(File, Pcd.DefaultValues)
+ for filedvalues in Pcd.DefaultValues.values():
+ self.PrintStructureInfo(File, filedvalues)
if DecMatch and IsStructure:
- self.PrintStructureInfo(File, Pcd.DefaultValues)
+ for filedvalues in Pcd.DefaultValues.values():
+ self.PrintStructureInfo(File, filedvalues)
def PrintPcdValue(self, File, Pcd, PcdTokenCName, TypeName, IsStructure, DscMatch, DscDefaultValue, InfMatch, InfDefaultValue, DecMatch, DecDefaultValue, Flag = ' '):
if not Pcd.SkuInfoList:
|