diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-17 17:12:06 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-18 10:41:51 +0800 |
commit | 51de5c302fed13b110963b3863fe69d6e2a51079 (patch) | |
tree | 476d45b8cff2371735091e45a94f1e1c2e143e9a /BaseTools/Source/Python/AutoGen/AutoGen.py | |
parent | c9b449213337172d629197a75390a151eba65eb6 (diff) | |
download | edk2-51de5c302fed13b110963b3863fe69d6e2a51079.tar.gz edk2-51de5c302fed13b110963b3863fe69d6e2a51079.tar.bz2 edk2-51de5c302fed13b110963b3863fe69d6e2a51079.zip |
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 <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 8 |
1 files 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
#
|