提交 52fdfa1b 编写于 作者: wuyangyong's avatar wuyangyong

add GetConfigValue() by Grissiom.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2284 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 e39022f3
...@@ -136,6 +136,13 @@ def PrepareModuleBuilding(env, root_directory): ...@@ -136,6 +136,13 @@ def PrepareModuleBuilding(env, root_directory):
# add program path # add program path
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
def GetConfigValue(name):
assert type(name) == str, 'GetConfigValue: only string parameter is valid'
try:
return BuildOptions[name]
except:
return ''
def GetDepend(depend): def GetDepend(depend):
building = True building = True
if type(depend) == type('str'): if type(depend) == type('str'):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册