1. Add a new option (--hiibinpackage) of GenFw tool to generate the resource section...
[efi/basetools/.git] / Source / Python / AutoGen / AutoGen.py
index 76c9318..43f8ee9 100755 (executable)
@@ -1944,7 +1944,7 @@ class ModuleAutoGen(AutoGen):
             if Source != File:
                 CreateDirectory(Source.Dir)
 
-            if File.IsBinary and File == Source:
+            if File.IsBinary and File == Source and self._BinaryFileList != None and File in self._BinaryFileList:
                 RuleObject = self.BuildRules[TAB_DEFAULT_BINARY_FILE]
             elif FileType in self.BuildRules:
                 RuleObject = self.BuildRules[FileType]