mirror of https://github.com/acidanthera/audk.git
BaseTools: Move CreateAsBuiltInf into AutoGenWorker for parallel
AsBuiltInf can be created during AutoGen phase. Move CreateAsBuiltInf into AutoGenWorker to make this step run in parallel. Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yuwei Chen <yuwei.chen@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
parent
313d2ec991
commit
5dc2699d10
|
@ -280,7 +280,7 @@ class AutoGenWorkerInProcess(mp.Process):
|
||||||
|
|
||||||
Ma.CreateCodeFile(False)
|
Ma.CreateCodeFile(False)
|
||||||
Ma.CreateMakeFile(False,GenFfsList=FfsCmd.get((Ma.MetaFile.Path, Ma.Arch),[]))
|
Ma.CreateMakeFile(False,GenFfsList=FfsCmd.get((Ma.MetaFile.Path, Ma.Arch),[]))
|
||||||
|
Ma.CreateAsBuiltInf()
|
||||||
if GlobalData.gBinCacheSource and CommandTarget in [None, "", "all"]:
|
if GlobalData.gBinCacheSource and CommandTarget in [None, "", "all"]:
|
||||||
try:
|
try:
|
||||||
CacheResult = Ma.CanSkipbyMakeCache()
|
CacheResult = Ma.CanSkipbyMakeCache()
|
||||||
|
|
|
@ -873,7 +873,7 @@ class Build():
|
||||||
|
|
||||||
PcdMa.CreateCodeFile(False)
|
PcdMa.CreateCodeFile(False)
|
||||||
PcdMa.CreateMakeFile(False,GenFfsList = DataPipe.Get("FfsCommand").get((PcdMa.MetaFile.Path, PcdMa.Arch),[]))
|
PcdMa.CreateMakeFile(False,GenFfsList = DataPipe.Get("FfsCommand").get((PcdMa.MetaFile.Path, PcdMa.Arch),[]))
|
||||||
|
PcdMa.CreateAsBuiltInf()
|
||||||
# Force cache miss for PCD driver
|
# Force cache miss for PCD driver
|
||||||
if GlobalData.gBinCacheSource and self.Target in [None, "", "all"]:
|
if GlobalData.gBinCacheSource and self.Target in [None, "", "all"]:
|
||||||
cqueue.put((PcdMa.MetaFile.Path, PcdMa.Arch, "MakeCache", False))
|
cqueue.put((PcdMa.MetaFile.Path, PcdMa.Arch, "MakeCache", False))
|
||||||
|
@ -1265,7 +1265,6 @@ class Build():
|
||||||
if BuildModule:
|
if BuildModule:
|
||||||
BuildCommand = BuildCommand + [Target]
|
BuildCommand = BuildCommand + [Target]
|
||||||
LaunchCommand(BuildCommand, AutoGenObject.MakeFileDir)
|
LaunchCommand(BuildCommand, AutoGenObject.MakeFileDir)
|
||||||
self.CreateAsBuiltInf()
|
|
||||||
if GlobalData.gBinCacheDest:
|
if GlobalData.gBinCacheDest:
|
||||||
self.GenDestCache()
|
self.GenDestCache()
|
||||||
elif GlobalData.gUseHashCache and not GlobalData.gBinCacheSource:
|
elif GlobalData.gUseHashCache and not GlobalData.gBinCacheSource:
|
||||||
|
@ -2276,7 +2275,6 @@ class Build():
|
||||||
#
|
#
|
||||||
ExitFlag.set()
|
ExitFlag.set()
|
||||||
BuildTask.WaitForComplete()
|
BuildTask.WaitForComplete()
|
||||||
self.CreateAsBuiltInf()
|
|
||||||
if GlobalData.gBinCacheDest:
|
if GlobalData.gBinCacheDest:
|
||||||
self.GenDestCache()
|
self.GenDestCache()
|
||||||
elif GlobalData.gUseHashCache and not GlobalData.gBinCacheSource:
|
elif GlobalData.gUseHashCache and not GlobalData.gBinCacheSource:
|
||||||
|
|
Loading…
Reference in New Issue