mirror_edk2/BaseTools/Source/Python/AutoGen
Yonghong Zhu 36d083ef00 BaseTools: add support for BIOS build with binary cache
Add three new options:
--hash enables hash-based caching during build process. when --hash is
enabled, build tool will base on the module hash value to do the
incremental build, without --hash, build tool will base on the
timestamp to do the incremental build. --hash option use md5 method to
get every hash value, DSC/FDF, tools_def.txt, build_rule.txt and build
command are calculated as global hash value, Package DEC and its
include header files are calculated as package hash value, Module
source files and its INF file are calculated as module hash value.
Library hash value will combine the global hash value and its dependent
package hash value. Driver hash value will combine the global hash
value, its dependent package hash value and its linked library hash
value.
When --hash and --binary-destination are specified, build tool will
copy generated binary files for each module into the directory specified
by binary-destination at the build phase. Binary-destination directory
caches all generated binary files.
When --hash and --binary-source are specified, build tool will try to
get the binary files from the binary source directory at the build
phase.If the cached binary has the same hash value, it will be directly
used. Otherwise, build tool will compile the source files and generate
the binary files.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2017-09-27 17:14:54 +08:00
..
__init__.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
AutoGen.py BaseTools: add support for BIOS build with binary cache 2017-09-27 17:14:54 +08:00
BuildEngine.py BaseTools: Clean some coding style issues 2015-12-01 04:22:16 +00:00
GenC.py BaseTools/AutoGen: auto generate MM template APIs and dependencies. 2017-07-07 10:49:13 +08:00
GenDepex.py BaseTools/AutoGen: auto generate MM template APIs and dependencies. 2017-07-07 10:49:13 +08:00
GenMake.py BaseTools: Fix a bug to correct SourceFileList 2017-09-19 15:27:50 +08:00
GenPcdDb.py BaseTools: Follow PI1.4a to fix artificial limitation of PCD SkuId range 2016-09-20 16:50:48 +08:00
IdfClassObject.py BaseTools: add error check for "#image" for idf file format 2016-12-02 11:00:43 +08:00
InfSectionParser.py BaseTools: Copy "TianoCore" userextensions into As Built Inf 2017-06-24 23:00:08 +08:00
StrGather.py BaseTools: support generating image package from BMP/JPEG/PNG files 2016-09-27 09:43:28 +08:00
UniClassObject.py BaseTools: Allow string token identifier to use lower case letters 2016-08-08 10:52:31 +08:00
ValidCheckingInfoObject.py BaseTools: Fix build fail when the number in validlist is long type. 2015-08-21 01:09:16 +00:00