X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2Fbuild%2FBuildReport.py;h=a7cbb6a98c28f8f3321e2c2779b672c3db6ded65;hb=c65df5d9a14331d2b6d583359f1cf88c3b710d34;hp=a1ee43aa26ed41d31b4f3613965876e4b4fe3db6;hpb=fff2623cc2a5e3d85db201a4cf1ca8c595e20075;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py index a1ee43aa26..a7cbb6a98c 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -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: