diff options
| author | [email protected] <[email protected]> | 2012-01-13 14:58:58 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-01-13 14:58:58 +0000 |
| commit | c021765b71c4cb4e4dfff5301a74f37b43e35c24 (patch) | |
| tree | e2c555cf17930967b235e161953b2838c14d96e5 /bsp/lpc176x/rtconfig.py | |
| parent | d21b20835f7cbf3cf6037e43f8e964adb2af75e0 (diff) | |
update building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1917 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/lpc176x/rtconfig.py')
| -rw-r--r-- | bsp/lpc176x/rtconfig.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bsp/lpc176x/rtconfig.py b/bsp/lpc176x/rtconfig.py index 11c425ff93..563590ffb0 100644 --- a/bsp/lpc176x/rtconfig.py +++ b/bsp/lpc176x/rtconfig.py @@ -1,8 +1,13 @@ +import os
+
# toolchains options
ARCH='arm'
CPU='cortex-m3'
CROSS_TOOL='keil'
+if os.getenv('RTT_CC'):
+ CROSS_TOOL = os.getenv('RTT_CC')
+
if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc'
EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin'
@@ -12,6 +17,10 @@ elif CROSS_TOOL == 'keil': elif CROSS_TOOL == 'iar':
PLATFORM = 'iar'
EXEC_PATH = 'E:/Program Files/IAR Systems/Embedded Workbench 6.0/arm/bin'
+
+if os.getenv('RTT_EXEC_PATH'):
+ EXEC_PATH = os.getenv('RTT_EXEC_PATH')
+
BUILD = 'debug'
if PLATFORM == 'gcc':
|
