summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/build/BuildReport.py
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2018-04-02 11:15:27 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-04-09 14:05:01 +0800
commitb91b8ee4c97a8ac52986f850e05765bffcfc9479 (patch)
tree95cd81ff4aa53a7a742c3b0ad6fd6d4b23b4020a /BaseTools/Source/Python/build/BuildReport.py
parent175a4b5db39f57721022990ac8b92cf33015fa0b (diff)
downloadedk2-b91b8ee4c97a8ac52986f850e05765bffcfc9479.tar.gz
edk2-b91b8ee4c97a8ac52986f850e05765bffcfc9479.tar.bz2
edk2-b91b8ee4c97a8ac52986f850e05765bffcfc9479.zip
BaseTools: Pcd not used info should not in Module PCD section
Pcds in Conditional Directives and Pcds not used are Platform Level info, it should not display in Module PCD Section. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@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.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py
index 966a2aa5ab..6a79e23632 100644
--- a/BaseTools/Source/Python/build/BuildReport.py
+++ b/BaseTools/Source/Python/build/BuildReport.py
@@ -877,10 +877,11 @@ class PcdReport(object):
self.DscPcdDefault[(TokenCName, TokenSpaceGuidCName)] = DscDefaultValue
def GenerateReport(self, File, ModulePcdSet):
- if self.ConditionalPcds:
- self.GenerateReportDetail(File, ModulePcdSet, 1)
- if self.UnusedPcds:
- self.GenerateReportDetail(File, ModulePcdSet, 2)
+ if not ModulePcdSet:
+ if self.ConditionalPcds:
+ self.GenerateReportDetail(File, ModulePcdSet, 1)
+ if self.UnusedPcds:
+ self.GenerateReportDetail(File, ModulePcdSet, 2)
self.GenerateReportDetail(File, ModulePcdSet)
##
@@ -904,7 +905,7 @@ class PcdReport(object):
elif ReportSubType == 2:
PcdDict = self.UnusedPcds
- if ModulePcdSet is None:
+ if not ModulePcdSet:
FileWrite(File, gSectionStart)
if ReportSubType == 1:
FileWrite(File, "Conditional Directives used by the build system")