From 395bfa1636a8cae616214a7b15fefe87cb8866cf Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Mon, 17 Apr 2017 17:12:06 +0800 Subject: BaseTools: Update the Conf directory to use the absolute path Update the Conf directory to use the absolute path for build_rule.txt and tools_def.txt. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/AutoGen/AutoGen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 3d3dfefdbc..e1bdef09ca 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -62,10 +62,10 @@ gMakeTypeMap = {"MSFT":"nmake", "GCC":"gmake"} ## Build rule configuration file -gDefaultBuildRuleFile = 'Conf/build_rule.txt' +gDefaultBuildRuleFile = 'build_rule.txt' ## Tools definition configuration file -gDefaultToolsDefFile = 'Conf/tools_def.txt' +gDefaultToolsDefFile = 'tools_def.txt' ## Build rule default version AutoGenReqBuildRuleVerNum = "0.1" @@ -726,8 +726,8 @@ class WorkspaceAutoGen(AutoGen): # # add build_rule.txt & tools_def.txt # - AllWorkSpaceMetaFiles.add(gDefaultBuildRuleFile) - AllWorkSpaceMetaFiles.add(gDefaultToolsDefFile) + AllWorkSpaceMetaFiles.add(os.path.join(GlobalData.gConfDirectory, gDefaultBuildRuleFile)) + AllWorkSpaceMetaFiles.add(os.path.join(GlobalData.gConfDirectory, gDefaultToolsDefFile)) # add BuildOption metafile # -- cgit v1.2.3