mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
BaseTools: Fix the bug to correctly check Pcd type that in FDF file
We set Pcd value in FDF and used this Pcd as PatchableInModule type in module, it cause build report generate failure. because we incorrectly set the Pcd type during check whether the Pcd is used. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
fff2623cc2
commit
c65df5d9a1
@ -737,6 +737,13 @@ class PcdReport(object):
|
||||
UnusedPcdFullList = []
|
||||
for item in Pa.Platform.Pcds:
|
||||
Pcd = Pa.Platform.Pcds[item]
|
||||
if not Pcd.Type:
|
||||
# check the Pcd in FDF file, whether it is used in module first
|
||||
for T in ["FixedAtBuild", "PatchableInModule", "FeatureFlag", "Dynamic", "DynamicEx"]:
|
||||
PcdList = self.AllPcds.setdefault(Pcd.TokenSpaceGuidCName, {}).setdefault(T, [])
|
||||
if Pcd in PcdList:
|
||||
Pcd.Type = T
|
||||
break
|
||||
if not Pcd.Type:
|
||||
PcdTypeFlag = False
|
||||
for package in Pa.PackageList:
|
||||
|
Loading…
x
Reference in New Issue
Block a user