summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2017-12-12 15:20:18 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-12-13 16:07:48 +0800
commit19bf8314dc0187e1ccde0ccbd82b876722b8319e (patch)
tree683a4c4d3cde4a18aef8b6ccbe167f4c0138a934 /BaseTools
parent83397f95f99b0884b27764f8ed13615a500e8fd7 (diff)
downloadedk2-19bf8314dc0187e1ccde0ccbd82b876722b8319e.zip
edk2-19bf8314dc0187e1ccde0ccbd82b876722b8319e.tar.gz
edk2-19bf8314dc0187e1ccde0ccbd82b876722b8319e.tar.bz2
BaseTools: enable hash value check for single module build
This patch enables hash value check for single module build to decide whether we can skip to build this module. 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>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/build/build.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index 457f6c9..8cf139c 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -1845,6 +1845,10 @@ class Build():
if self.ModuleFile.Dir == Module.Dir and self.ModuleFile.Name == Module.Name:
Ma = ModuleAutoGen(Wa, Module, BuildTarget, ToolChain, Arch, self.PlatformFile)
if Ma == None: continue
+ MaList.append(Ma)
+ if Ma.CanSkipbyHash():
+ self.HashSkipModules.append(Ma)
+ continue
# Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'
if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:
# for target which must generate AutoGen code and makefile
@@ -1856,7 +1860,6 @@ class Build():
del CmdListDict[Module.File, Arch]
else:
Ma.CreateMakeFile(True)
- MaList.append(Ma)
self.BuildModules.append(Ma)
self.AutoGenTime += int(round((time.time() - AutoGenStart)))
MakeStart = time.time()