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>
This commit is contained in:
Derek Lin 2017-04-11 13:20:08 +08:00 committed by Yonghong Zhu
parent 8ac3309f1b
commit 86601b7895
1 changed files with 8 additions and 0 deletions

View File

@ -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'))