]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/AutoGen/GenMake.py
BaseTools: Improve the cache hit in the edk2 build cache
authorShi, Steven <steven.shi@intel.com>
Thu, 15 Aug 2019 14:26:17 +0000 (22:26 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Tue, 20 Aug 2019 06:06:05 +0000 (14:06 +0800)
commit0e7e7a264cd80ab71ea0f9e9da2d0617d4b539c4
treed50807986105cd221b951fada78a740f5a3ebc06
parent811328172841ce3f7ec1fe7033c130726ad189b7
BaseTools: Improve the cache hit in the edk2 build cache

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1927

Current cache hash algorithm does not parse and generate
the makefile to get the accurate dependency files for a
module. It instead use the platform and package meta files
to get the module depenedency in a quick but over approximate
way. These meta files are monolithic and involve many redundant
dependency for the module, which cause the module build
cache miss easily.
This patch introduces one more cache checkpoint and a new
hash algorithm besides the current quick one. The new hash
algorithm leverages the module makefile to achieve more
accurate and precise dependency info for a module. When
the build cache miss with the first quick hash, the
Basetool will caculate new one after makefile is generated
and then check again.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Steven Shi <steven.shi@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/AutoGenWorker.py [changed mode: 0644->0755]
BaseTools/Source/Python/AutoGen/CacheIR.py [new file with mode: 0755]
BaseTools/Source/Python/AutoGen/DataPipe.py [changed mode: 0644->0755]
BaseTools/Source/Python/AutoGen/GenMake.py [changed mode: 0644->0755]
BaseTools/Source/Python/AutoGen/ModuleAutoGen.py [changed mode: 0644->0755]
BaseTools/Source/Python/Common/GlobalData.py [changed mode: 0644->0755]
BaseTools/Source/Python/build/build.py [changed mode: 0644->0755]