diff options
| author | wuyangyong <[email protected]> | 2012-09-09 04:10:14 +0000 |
|---|---|---|
| committer | wuyangyong <[email protected]> | 2012-09-09 04:10:14 +0000 |
| commit | 52fdfa1bf8b0527fbb52b92a41864a379e28e26b (patch) | |
| tree | b08990b58287f8dd4eb1947a0d02d6c18a9d2a6e /tools | |
| parent | e39022f3c75ce44f3c80b302c0df14e241cb001a (diff) | |
add GetConfigValue() by Grissiom.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2284 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/building.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/building.py b/tools/building.py index f59d856bd4..247cf0c9ff 100644 --- a/tools/building.py +++ b/tools/building.py @@ -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'): |
