From 350c9ae081a54628e2ccee9fc2d3617f670ba4aa Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Wed, 16 Jan 2019 18:48:46 +0800 Subject: [PATCH] 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 Cc: Liming Gao Reviewed-by: Liming Gao --- BaseTools/Source/Python/build/BuildReport.py | 6 ++++-- 1 file 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: