From 18692c29b8d8a24dcd6710c4bea4339789c21c17 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Fri, 6 Sep 2013 21:54:27 +0800 Subject: [PATCH] simulator: get CROSS_TOOL and EXEC_PATH from env Simulator get it's way to Travis CI ready. --- bsp/simulator/rtconfig.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 = '' -- GitLab