diff options
author | Derek Lin <derek.lin2@hpe.com> | 2017-04-11 13:20:08 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-13 10:31:24 +0800 |
commit | e83897e90cba2e3221b470cadef286bf2e48cc74 (patch) | |
tree | e5a125d31f713e3beedf58eba8954ea1bd0336fd | |
parent | 4df14106411c4e0f7a521862c68d7110264fd2e0 (diff) | |
download | edk2-platforms-e83897e90cba2e3221b470cadef286bf2e48cc74.tar.xz |
BaseTools: Fix re-build issue after tools_def/build_rule updated.
Add tools_def.txt and build_rule.txt to workspace autogen timestamp file.
Now it will not skip autogen if this two file is updated.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Derek Lin <derek.lin2@hpe.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 70c6c91186..3d3dfefdbc 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -64,6 +64,9 @@ gMakeTypeMap = {"MSFT":"nmake", "GCC":"gmake"} ## Build rule configuration file
gDefaultBuildRuleFile = 'Conf/build_rule.txt'
+## Tools definition configuration file
+gDefaultToolsDefFile = 'Conf/tools_def.txt'
+
## Build rule default version
AutoGenReqBuildRuleVerNum = "0.1"
@@ -721,6 +724,11 @@ class WorkspaceAutoGen(AutoGen): AllWorkSpaceMetaFiles.add(self.MetaFile.Path)
#
+ # add build_rule.txt & tools_def.txt
+ #
+ AllWorkSpaceMetaFiles.add(gDefaultBuildRuleFile)
+ AllWorkSpaceMetaFiles.add(gDefaultToolsDefFile)
+
# add BuildOption metafile
#
AllWorkSpaceMetaFiles.add(os.path.join(self.BuildDir, 'BuildOptions'))
|