Reviewed-by: Bob Feng <[email protected]> -----Original Message----- From: Fan, ZhijuX Sent: Friday, January 18, 2019 10:33 AM To: [email protected] Cc: Gao, Liming <[email protected]>; Feng, Bob C <[email protected]> Subject: [edk2][PATCH V2] BaseTools: Fix Pcd Array changes 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. Cc: Bob Feng <[email protected]> Cc: Liming Gao <[email protected]> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <[email protected]> --- BaseTools/Source/Python/build/BuildReport.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py index 654a69e05c..30bd2952ef 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -1195,8 +1195,11 @@ class PcdReport(object): HasDscOverride = False if struct: for _, Values in struct.items(): - if Values[1] and Values[1].endswith('.dsc'): - HasDscOverride = True + for Key, value in Values.items(): + if value[1] and value[1].endswith('.dsc'): + HasDscOverride = True + break + if HasDscOverride == True: break return HasDscOverride -- 2.14.1.windows.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

