Update the syntax of [sources] & [binaries] section to conform to Extended INF spec...
authorqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 24 Aug 2007 00:44:28 +0000 (00:44 +0000)
committerqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 24 Aug 2007 00:44:28 +0000 (00:44 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@626 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/msa2inf/StoreInf.py

index 786ce24..971aaec 100644 (file)
@@ -114,9 +114,9 @@ def GetModuleSourceItem(ModuleSourceFile):
     Source = []\r
     Source.append(ModuleSourceFile.SourceFile)\r
     Source.append(ModuleSourceFile.ToolChainFamily)\r
-    Source.append(ModuleSourceFile.FeatureFlag)\r
     Source.append(ModuleSourceFile.TagName)\r
     Source.append(ModuleSourceFile.ToolCode)\r
+    Source.append(ModuleSourceFile.FeatureFlag)\r
     return "|".join(Source).rstrip("|")\r
     \r
 \r
@@ -144,9 +144,10 @@ def StoreModuleSourcesSection(InfFile, Module):
 def GetModuleBinaryItem(ModuleBinaryFile):\r
     Binary = []\r
     Binary.append(ModuleBinaryFile.FileType)\r
-    Binary.append(ModuleBinaryFile.Target)\r
     Binary.append(ModuleBinaryFile.BinaryFile)\r
-    return "|".join(Binary)\r
+    Binary.append(ModuleBinaryFile.Target)\r
+    Binary.append(ModuleBinaryFile.FeatureFlag)\r
+    return "|".join(Binary).rstrip("|")\r
 \r
 \r
 ## Store Binaries section.\r