mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix incremental build bug
https://bugzilla.tianocore.org/show_bug.cgi?id=2078 This is a build tool regression issue that is introduced by multiple-process-autogen. The workspace timestamp value is not pass to module autogen object correctly, so build tool does not detect the change of .dsc and ignore the autogen. This patch is to fix this issue. Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Tested-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
parent
46f8a68916
commit
a000d5d1ca
|
@ -218,7 +218,7 @@ class ModuleAutoGen(AutoGen):
|
||||||
EdkLogger.debug(EdkLogger.DEBUG_9, "AutoGen module [%s] [%s]" % (ModuleFile, Arch))
|
EdkLogger.debug(EdkLogger.DEBUG_9, "AutoGen module [%s] [%s]" % (ModuleFile, Arch))
|
||||||
GlobalData.gProcessingFile = "%s [%s, %s, %s]" % (ModuleFile, Arch, Toolchain, Target)
|
GlobalData.gProcessingFile = "%s [%s, %s, %s]" % (ModuleFile, Arch, Toolchain, Target)
|
||||||
|
|
||||||
self.Workspace = None
|
self.Workspace = Workspace
|
||||||
self.WorkspaceDir = ""
|
self.WorkspaceDir = ""
|
||||||
self.PlatformInfo = None
|
self.PlatformInfo = None
|
||||||
self.DataPipe = DataPipe
|
self.DataPipe = DataPipe
|
||||||
|
@ -255,7 +255,6 @@ class ModuleAutoGen(AutoGen):
|
||||||
|
|
||||||
def __init_platform_info__(self):
|
def __init_platform_info__(self):
|
||||||
pinfo = self.DataPipe.Get("P_Info")
|
pinfo = self.DataPipe.Get("P_Info")
|
||||||
self.Workspace = WorkSpaceInfo(pinfo.get("WorkspaceDir"),pinfo.get("ActivePlatform"),pinfo.get("Target"),pinfo.get("ToolChain"),pinfo.get("ArchList"))
|
|
||||||
self.WorkspaceDir = pinfo.get("WorkspaceDir")
|
self.WorkspaceDir = pinfo.get("WorkspaceDir")
|
||||||
self.PlatformInfo = PlatformInfo(self.Workspace,pinfo.get("ActivePlatform"),pinfo.get("Target"),pinfo.get("ToolChain"),pinfo.get("Arch"),self.DataPipe)
|
self.PlatformInfo = PlatformInfo(self.Workspace,pinfo.get("ActivePlatform"),pinfo.get("Target"),pinfo.get("ToolChain"),pinfo.get("Arch"),self.DataPipe)
|
||||||
## hash() operator of ModuleAutoGen
|
## hash() operator of ModuleAutoGen
|
||||||
|
|
Loading…
Reference in New Issue