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:
@ -64,6 +64,9 @@ gMakeTypeMap = {"MSFT":"nmake", "GCC":"gmake"}
|
|||||||
## Build rule configuration file
|
## Build rule configuration file
|
||||||
gDefaultBuildRuleFile = 'Conf/build_rule.txt'
|
gDefaultBuildRuleFile = 'Conf/build_rule.txt'
|
||||||
|
|
||||||
|
## Tools definition configuration file
|
||||||
|
gDefaultToolsDefFile = 'Conf/tools_def.txt'
|
||||||
|
|
||||||
## Build rule default version
|
## Build rule default version
|
||||||
AutoGenReqBuildRuleVerNum = "0.1"
|
AutoGenReqBuildRuleVerNum = "0.1"
|
||||||
|
|
||||||
@ -721,6 +724,11 @@ class WorkspaceAutoGen(AutoGen):
|
|||||||
AllWorkSpaceMetaFiles.add(self.MetaFile.Path)
|
AllWorkSpaceMetaFiles.add(self.MetaFile.Path)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
# add build_rule.txt & tools_def.txt
|
||||||
|
#
|
||||||
|
AllWorkSpaceMetaFiles.add(gDefaultBuildRuleFile)
|
||||||
|
AllWorkSpaceMetaFiles.add(gDefaultToolsDefFile)
|
||||||
|
|
||||||
# add BuildOption metafile
|
# add BuildOption metafile
|
||||||
#
|
#
|
||||||
AllWorkSpaceMetaFiles.add(os.path.join(self.BuildDir, 'BuildOptions'))
|
AllWorkSpaceMetaFiles.add(os.path.join(self.BuildDir, 'BuildOptions'))
|
||||||
|
Reference in New Issue
Block a user