mirror of https://github.com/acidanthera/audk.git
BaseTools:Extend the binary cache to support library cache
https://bugzilla.tianocore.org/show_bug.cgi?id=1797 Current binary cache doesn't support to save and restore the library module. If a driver module cache miss happen, all its dependency library modules need rebuild which is very time-consuming. This patch is to extend the binary cache to support library. Cc: Liming Gao <liming.gao@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Christian Rodriguez <christian.rodriguez@intel.com> Signed-off-by: Steven Shi <steven.shi@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
parent
e2afc8ab59
commit
3a0b998bf3
|
@ -3906,6 +3906,12 @@ class ModuleAutoGen(AutoGen):
|
|||
ModuleFile = path.join(self.OutputDir, self.Name + '.inf')
|
||||
if os.path.exists(ModuleFile):
|
||||
shutil.copy2(ModuleFile, FileDir)
|
||||
else:
|
||||
OutputDir = self.OutputDir.replace('\\', '/').strip('/')
|
||||
DebugDir = self.DebugDir.replace('\\', '/').strip('/')
|
||||
for Item in self.CodaTargetList:
|
||||
File = Item.Target.Path.replace('\\', '/').strip('/').replace(DebugDir, '').replace(OutputDir, '').strip('/')
|
||||
self.OutputFile.add(File)
|
||||
if not self.OutputFile:
|
||||
Ma = self.BuildDatabase[self.MetaFile, self.Arch, self.BuildTarget, self.ToolChain]
|
||||
self.OutputFile = Ma.Binaries
|
||||
|
|
Loading…
Reference in New Issue