From e3ef8f0c52aa4bcceb9a305ff4c0842b4bb1e074 Mon Sep 17 00:00:00 2001 From: "Fan, ZhijuX" Date: Fri, 18 Jan 2019 10:32:43 +0800 Subject: [PATCH] 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 Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan Reviewed-by: Bob Feng --- 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 ae37a6ce0e..6c9a20b373 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