]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/FdfParser.py
BaseTools: Dsc/Fdf conditional statement parse issue
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / FdfParser.py
index 44a3564c7c1d0f00d25e805137ceca6008ad603b..fc2b409847be5b24a5e774a055ae6214089d4f59 100644 (file)
@@ -925,6 +925,10 @@ class FdfParser:
 \r
         MacroDict.update(GlobalData.gGlobalDefines)\r
         MacroDict.update(GlobalData.gCommandLineDefines)\r
+        if GlobalData.BuildOptionPcd:\r
+            for Item in GlobalData.BuildOptionPcd:\r
+                PcdName, TmpValue = Item.split("=")\r
+                MacroDict[PcdName.strip()] = TmpValue\r
         # Highest priority\r
 \r
         return MacroDict\r