summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/DataPipe.py
diff options
context:
space:
mode:
authorSteven Shi <steven.shi@intel.com>2019-11-19 16:17:00 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2019-12-10 02:07:12 +0000
commitfc8b8deac2d77524ff8cfe44acf95b5e1f59804e (patch)
tree0af9c4aefabb98f56c52b55c44f0eccd626d3920 /BaseTools/Source/Python/AutoGen/DataPipe.py
parent3bfbc915074a45f4d9c61aa2b698a62f1a24124e (diff)
downloadedk2-fc8b8deac2d77524ff8cfe44acf95b5e1f59804e.tar.gz
edk2-fc8b8deac2d77524ff8cfe44acf95b5e1f59804e.tar.bz2
edk2-fc8b8deac2d77524ff8cfe44acf95b5e1f59804e.zip
BaseTools: Leverage compiler output to optimize binary cache
Redesign the binary cache and bases on the compiler to output the dependency header files info for every module. The binary cache will directly consume the dependency header files info and doesn't parse the C source code by iteself. Also redesign the dependency files list format for module and try to share the common lib hash result as more as possible in local process. Remove the unnecessary share data access across multiprocessing. 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/Python/AutoGen/DataPipe.py')
-rwxr-xr-xBaseTools/Source/Python/AutoGen/DataPipe.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/DataPipe.py b/BaseTools/Source/Python/AutoGen/DataPipe.py
index 078bafecb4..50403fbfb5 100755
--- a/BaseTools/Source/Python/AutoGen/DataPipe.py
+++ b/BaseTools/Source/Python/AutoGen/DataPipe.py
@@ -159,6 +159,8 @@ class MemoryDataPipe(DataPipe):
self.DataContainer = {"LogLevel": EdkLogger.GetLevel()}
+ self.DataContainer = {"UseHashCache":GlobalData.gUseHashCache}
+
self.DataContainer = {"BinCacheSource":GlobalData.gBinCacheSource}
self.DataContainer = {"BinCacheDest":GlobalData.gBinCacheDest}