add GetConfigValue() by Grissiom.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2284 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
wuyangyong 2012-09-09 04:10:14 +00:00
parent e39022f3c7
commit 52fdfa1bf8
1 changed files with 7 additions and 0 deletions

View File

@ -136,6 +136,13 @@ def PrepareModuleBuilding(env, root_directory):
# add program 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):
building = True
if type(depend) == type('str'):