From e83897e90cba2e3221b470cadef286bf2e48cc74 Mon Sep 17 00:00:00 2001 From: Derek Lin Date: Tue, 11 Apr 2017 13:20:08 +0800 Subject: 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 Reviewed-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/AutoGen/AutoGen.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'BaseTools/Source') 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')) -- cgit v1.2.3