summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorDerek Lin <derek.lin2@hpe.com>2017-04-11 13:20:08 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-04-13 10:55:25 +0800
commit86601b78955fbb7fbb4a2a7d8cdda99344b24384 (patch)
treeeec565b36de64cbc794157e193623ecc3ea4d8c8 /BaseTools
parent8ac3309f1bf6479268f9d01f0758d22359a1adc8 (diff)
downloadedk2-86601b78955fbb7fbb4a2a7d8cdda99344b24384.zip
edk2-86601b78955fbb7fbb4a2a7d8cdda99344b24384.tar.gz
edk2-86601b78955fbb7fbb4a2a7d8cdda99344b24384.tar.bz2
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>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/AutoGen/AutoGen.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py
index 70c6c91..3d3dfef 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'))