mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
175a4b5db3
commit
b91b8ee4c9
|
@ -877,10 +877,11 @@ class PcdReport(object):
|
||||||
self.DscPcdDefault[(TokenCName, TokenSpaceGuidCName)] = DscDefaultValue
|
self.DscPcdDefault[(TokenCName, TokenSpaceGuidCName)] = DscDefaultValue
|
||||||
|
|
||||||
def GenerateReport(self, File, ModulePcdSet):
|
def GenerateReport(self, File, ModulePcdSet):
|
||||||
if self.ConditionalPcds:
|
if not ModulePcdSet:
|
||||||
self.GenerateReportDetail(File, ModulePcdSet, 1)
|
if self.ConditionalPcds:
|
||||||
if self.UnusedPcds:
|
self.GenerateReportDetail(File, ModulePcdSet, 1)
|
||||||
self.GenerateReportDetail(File, ModulePcdSet, 2)
|
if self.UnusedPcds:
|
||||||
|
self.GenerateReportDetail(File, ModulePcdSet, 2)
|
||||||
self.GenerateReportDetail(File, ModulePcdSet)
|
self.GenerateReportDetail(File, ModulePcdSet)
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -904,7 +905,7 @@ class PcdReport(object):
|
||||||
elif ReportSubType == 2:
|
elif ReportSubType == 2:
|
||||||
PcdDict = self.UnusedPcds
|
PcdDict = self.UnusedPcds
|
||||||
|
|
||||||
if ModulePcdSet is None:
|
if not ModulePcdSet:
|
||||||
FileWrite(File, gSectionStart)
|
FileWrite(File, gSectionStart)
|
||||||
if ReportSubType == 1:
|
if ReportSubType == 1:
|
||||||
FileWrite(File, "Conditional Directives used by the build system")
|
FileWrite(File, "Conditional Directives used by the build system")
|
||||||
|
|
Loading…
Reference in New Issue