]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/MetaFileParser.py
BaseTools: Add the FeatureFlagExpression usage to the Source Section
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / MetaFileParser.py
index a3b6edbd15ee5bf79cef0ac1fc5e53db30356c91..3508591b281e17f968762b3cadffec969bc13ffc 100644 (file)
@@ -736,6 +736,10 @@ class InfParser(MetaFileParser):
     @ParseMacro\r
     def _SourceFileParser(self):\r
         TokenList = GetSplitValueList(self._CurrentLine, TAB_VALUE_SPLIT)\r
+        # Let TokenList[2] be TagName|ToolCode|FeatureFlag\r
+        if len(TokenList) > 3:\r
+            for extraToken in range(3, len(TokenList)):\r
+                TokenList[2] = TokenList[2] + '|' + TokenList[extraToken]\r
         self._ValueList[0:len(TokenList)] = TokenList\r
         Macros = self._Macros\r
         # For Acpi tables, remove macro like ' TABLE_NAME=Sata1'\r