Changed StrGather behavior to be more R8 like
[people/mcb30/basetools.git] / Source / Python / AutoGen / AutoGen.py
index 5d7d613..ef3678d 100755 (executable)
@@ -935,7 +935,7 @@ class ModuleAutoGen(object):
                              % (Info.ToolChain, Info.BuildTarget, Info.Arch))\r
         ToolChainFamily = Info.PlatformInfo.ToolChainFamily["CC"]\r
         BuildRule = Info.PlatformInfo.BuildRule\r
-        BuildFileList = []\r
+        FileList = []\r
         for F in self.Module.Sources:\r
             SourceFile = F.SourceFile\r
             # match tool chain\r
@@ -961,28 +961,20 @@ class ModuleAutoGen(object):
 \r
             # skip file which needs a tool having no matching toolchain family\r
             FileType, RuleObject = BuildRule.Get(Ext, ToolChainFamily)\r
-            if FileType == None:\r
-                EdkLogger.verbose("Don't know how to process file [%s]." % SourceFile)\r
-                continue\r
-\r
             # unicode must be processed by AutoGen\r
             if FileType == "Unicode-Text-File":\r
                 self.BuildInfo.UnicodeFileList.append(os.path.join(self.WorkspaceDir, self.BuildInfo.SourceDir, SourceFile))\r
-                continue\r
 \r
             # if there's dxs file, don't use content in [depex] section to generate .depex file\r
             if FileType == "Dependency-Expression-File":\r
                 Info.DepexList = []\r
 \r
             # no command, no build\r
-            if RuleObject == None or RuleObject.CommandList == []:\r
-                Buildable = False\r
-                EdkLogger.verbose("No rule or command defined for building [%s], ignore file [%s]" % (FileType, SourceFile))\r
-                continue\r
-\r
-            BuildFileList.append([SourceFile, FileType, RuleObject])\r
+            if RuleObject != None and RuleObject.CommandList == []:\r
+                RuleObject = None\r
+            FileList.append([SourceFile, FileType, RuleObject])\r
 \r
-        return BuildFileList\r
+        return FileList\r
 \r
     ## Return a list of files which can be built from binary\r
     #\r