]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools:Extend the binary cache to support library cache
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / AutoGen.py
index a5bef4f7c62a0ec3ab7346460bce44c61cc93349..7b35f837f57cb1d1c470688b76853d0a76e4c4d6 100644 (file)
@@ -3906,6 +3906,12 @@ class ModuleAutoGen(AutoGen):
             ModuleFile = path.join(self.OutputDir, self.Name + '.inf')\r
             if os.path.exists(ModuleFile):\r
                 shutil.copy2(ModuleFile, FileDir)\r
+        else:\r
+            OutputDir = self.OutputDir.replace('\\', '/').strip('/')\r
+            DebugDir = self.DebugDir.replace('\\', '/').strip('/')\r
+            for Item in self.CodaTargetList:\r
+                File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').replace(OutputDir, '').strip('/')\r
+                self.OutputFile.add(File)\r
         if not self.OutputFile:\r
             Ma = self.BuildDatabase[self.MetaFile, self.Arch, self.BuildTarget, self.ToolChain]\r
             self.OutputFile = Ma.Binaries\r