diff options
author | Steven Shi <steven.shi@intel.com> | 2019-10-21 14:24:57 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2019-12-10 02:07:12 +0000 |
commit | 91f6c533f8e9c49ffd098e9167724596ecfd7410 (patch) | |
tree | 97228be28df6289c8cb30c9837a185cf032bf8a0 /BaseTools/Source | |
parent | 0c3e8e9947a6c13b4327dd11b20acb95441701cf (diff) | |
download | edk2-91f6c533f8e9c49ffd098e9167724596ecfd7410.tar.gz edk2-91f6c533f8e9c49ffd098e9167724596ecfd7410.tar.bz2 edk2-91f6c533f8e9c49ffd098e9167724596ecfd7410.zip |
BaseTools: store more complete output files in binary cache
Binary cache use the OutputFile method to return the module
built output files needed to store in cache, but current
OutputFile implementation doesn't return complete output files.
Enhance the OutputFile method to return more complete output files.
Signed-off-by: Steven Shi <steven.shi@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source')
-rwxr-xr-x | BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py index 1111d5de25..fce00c3ee7 100755 --- a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py +++ b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py @@ -1308,28 +1308,16 @@ class ModuleAutoGen(AutoGen): def OutputFile(self):
retVal = set()
- 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('/')
- NewFile = path.join(self.OutputDir, File)
- retVal.add(NewFile)
-
- Bin = self._GenOffsetBin()
- if Bin:
- NewFile = path.join(self.OutputDir, Bin)
- retVal.add(NewFile)
-
- for Root, Dirs, Files in os.walk(self.OutputDir):
+ for Root, Dirs, Files in os.walk(self.BuildDir):
for File in Files:
# lib file is already added through above CodaTargetList, skip it here
- if not (File.lower().endswith('.obj') or File.lower().endswith('.lib')):
- NewFile = path.join(self.OutputDir, File)
+ if not (File.lower().endswith('.obj') or File.lower().endswith('.debug')):
+ NewFile = path.join(Root, File)
retVal.add(NewFile)
for Root, Dirs, Files in os.walk(self.FfsOutputDir):
for File in Files:
- NewFile = path.join(self.FfsOutputDir, File)
+ NewFile = path.join(Root, File)
retVal.add(NewFile)
return retVal
|