]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/FfsInfStatement.py
BaseTools: fix --genfds-multi-thread generate makefile issue
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / FfsInfStatement.py
index 0dbffffc9a151b5529197a8d8830cf292befc2c0..5364569b96d7725a99a7bdb1b9057747437a722a 100644 (file)
@@ -502,9 +502,11 @@ class FfsInfStatement(FfsInfStatementClassObject):
         # For the rule only has simpleFile\r
         #\r
         MakefilePath = None\r
         # For the rule only has simpleFile\r
         #\r
         MakefilePath = None\r
+        if self.IsBinaryModule:\r
+            IsMakefile = False\r
         if IsMakefile:\r
             MakefilePath = self.InfFileName, Arch\r
         if IsMakefile:\r
             MakefilePath = self.InfFileName, Arch\r
-        if isinstance (Rule, RuleSimpleFile.RuleSimpleFile) :\r
+        if isinstance (Rule, RuleSimpleFile.RuleSimpleFile):\r
             SectionOutputList = self.__GenSimpleFileSection__(Rule, IsMakefile=IsMakefile)\r
             FfsOutput = self.__GenSimpleFileFfs__(Rule, SectionOutputList, MakefilePath=MakefilePath)\r
             return FfsOutput\r
             SectionOutputList = self.__GenSimpleFileSection__(Rule, IsMakefile=IsMakefile)\r
             FfsOutput = self.__GenSimpleFileFfs__(Rule, SectionOutputList, MakefilePath=MakefilePath)\r
             return FfsOutput\r