]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/WorkspaceCommon.py
BaseTools: Add the FeatureFlagExpression usage to the Source Section
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / WorkspaceCommon.py
index 53027a0e30f59a637136cd74a4c6ac94340a7e49..6564a34ba7241316f893bdb85cb9bada77a06948 100644 (file)
@@ -75,6 +75,11 @@ def GetDeclaredPcd(Platform, BuildDatabase, Arch, Target, Toolchain, additionalP
                         break\r
             if (PcdCName, PcdTokenName) not in DecPcds:\r
                 DecPcds[PcdCName, PcdTokenName] = Pkg.Pcds[Pcd]\r
+    if not GlobalData.gPlatformFinalPcds.get(Arch):\r
+        GlobalData.gPlatformFinalPcds[Arch] = OrderedDict()\r
+    for Name,Guid in DecPcds:\r
+        if DecPcds[Name,Guid].Type == 'FeatureFlag' or DecPcds[Name, Guid].Type == 'FixedAtBuild':\r
+            GlobalData.gPlatformFinalPcds[Arch]['%s.%s'%(Guid, Name)]=DecPcds[Name, Guid].DefaultValue\r
     return DecPcds, GuidDict\r
 \r
 ## Get all dependent libraries for a module\r