mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix a bug about list the PCD in "not used" section
Defined a pcd in Ovmf.dec and used that pcd in AcpiPlatformDxe.inf, then assign a value to that pcd from DSC, then build Ovmf platform successfully. But this Pcd was wrongly listed into not used section in the report.txt file. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
e23d9c3ed8
commit
ac4578af36
|
@ -819,6 +819,9 @@ class PcdReport(object):
|
|||
break
|
||||
|
||||
PcdList = self.AllPcds.setdefault(Pcd.TokenSpaceGuidCName, {}).setdefault(Pcd.Type, [])
|
||||
UnusedPcdList = self.UnusedPcds.setdefault(Pcd.TokenSpaceGuidCName, {}).setdefault(Pcd.Type, [])
|
||||
if Pcd in UnusedPcdList:
|
||||
UnusedPcdList.remove(Pcd)
|
||||
if Pcd not in PcdList and Pcd not in UnusedPcdFullList:
|
||||
UnusedPcdFullList.append(Pcd)
|
||||
if len(Pcd.TokenCName) > self.MaxLen:
|
||||
|
|
Loading…
Reference in New Issue