diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2019-08-13 12:09:17 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-08-14 10:23:25 +0800 |
commit | a000d5d1cac3a3df329e26877ad181a632b4e6ed (patch) | |
tree | 71393796843c0494b3b5cbce285f936569865b0b /BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | |
parent | 46f8a6891606746ca8b1e684ac379ce271306dc0 (diff) | |
download | edk2-a000d5d1cac3a3df329e26877ad181a632b4e6ed.tar.gz edk2-a000d5d1cac3a3df329e26877ad181a632b4e6ed.tar.bz2 edk2-a000d5d1cac3a3df329e26877ad181a632b4e6ed.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ModuleAutoGen.py')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py index ed6822334e..0654b11ad8 100644 --- a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py +++ b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py @@ -218,7 +218,7 @@ class ModuleAutoGen(AutoGen): EdkLogger.debug(EdkLogger.DEBUG_9, "AutoGen module [%s] [%s]" % (ModuleFile, Arch))
GlobalData.gProcessingFile = "%s [%s, %s, %s]" % (ModuleFile, Arch, Toolchain, Target)
- self.Workspace = None
+ self.Workspace = Workspace
self.WorkspaceDir = ""
self.PlatformInfo = None
self.DataPipe = DataPipe
@@ -255,7 +255,6 @@ class ModuleAutoGen(AutoGen): def __init_platform_info__(self):
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.PlatformInfo = PlatformInfo(self.Workspace,pinfo.get("ActivePlatform"),pinfo.get("Target"),pinfo.get("ToolChain"),pinfo.get("Arch"),self.DataPipe)
## hash() operator of ModuleAutoGen
|