diff options
| author | Grissiom <[email protected]> | 2013-09-06 21:54:27 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-09-06 21:54:27 +0800 |
| commit | 18692c29b8d8a24dcd6710c4bea4339789c21c17 (patch) | |
| tree | aa4c21cc8ff09033cf0e9115aa2008674cc42ccb /bsp/simulator/rtconfig.py | |
| parent | c6e81b58d9da3866287b02f48e231db7d272acd5 (diff) | |
simulator: get CROSS_TOOL and EXEC_PATH from env
Simulator get it's way to Travis CI ready.
Diffstat (limited to 'bsp/simulator/rtconfig.py')
| -rwxr-xr-x | bsp/simulator/rtconfig.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bsp/simulator/rtconfig.py b/bsp/simulator/rtconfig.py index 7a42bddbcf..9328a087f8 100755 --- a/bsp/simulator/rtconfig.py +++ b/bsp/simulator/rtconfig.py @@ -1,3 +1,5 @@ +import os + # toolchains options ARCH='sim' #CROSS_TOOL='msvc' or 'gcc' or 'mingw' @@ -5,6 +7,9 @@ ARCH='sim' # 'gcc' is for linux CROSS_TOOL='msvc' +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + # cross_tool provides the cross compiler # EXEC_PATH is the compiler execute path if CROSS_TOOL == 'gcc': @@ -26,6 +31,9 @@ else : print "bad CROSS TOOL!" exit(1) +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + BUILD = 'debug' #BUILD = '' |
