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>
This commit is contained in:
@ -1245,9 +1245,11 @@ class PcdReport(object):
|
|||||||
Value = "0x{:X} ({})".format(int(Value, 0), Value)
|
Value = "0x{:X} ({})".format(int(Value, 0), Value)
|
||||||
FileWrite(File, ' %*s = %s' % (self.MaxLen + 19, 'DEC DEFAULT', Value))
|
FileWrite(File, ' %*s = %s' % (self.MaxLen + 19, 'DEC DEFAULT', Value))
|
||||||
if IsStructure:
|
if IsStructure:
|
||||||
self.PrintStructureInfo(File, Pcd.DefaultValues)
|
for filedvalues in Pcd.DefaultValues.values():
|
||||||
|
self.PrintStructureInfo(File, filedvalues)
|
||||||
if DecMatch and IsStructure:
|
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 = ' '):
|
def PrintPcdValue(self, File, Pcd, PcdTokenCName, TypeName, IsStructure, DscMatch, DscDefaultValue, InfMatch, InfDefaultValue, DecMatch, DecDefaultValue, Flag = ' '):
|
||||||
if not Pcd.SkuInfoList:
|
if not Pcd.SkuInfoList:
|
||||||
|
Reference in New Issue
Block a user