summaryrefslogtreecommitdiff
path: root/bsp/lm3s8962
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-04-09 03:32:35 +0000
committer[email protected] <[email protected]>2012-04-09 03:32:35 +0000
commita7810e12b9c2769419bac6582fae079d15ab9366 (patch)
tree8c5fe34a950502e5f34d2ce2aab4d8725bb0f3f7 /bsp/lm3s8962
parent9c804a28a442837d222358b63821c0ebf4efc811 (diff)
update the rtconfig.py and SConstruct in the BSP
in order to use buildbot.py git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2028 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/lm3s8962')
-rw-r--r--bsp/lm3s8962/SConstruct6
-rw-r--r--bsp/lm3s8962/rtconfig.py14
2 files changed, 19 insertions, 1 deletions
diff --git a/bsp/lm3s8962/SConstruct b/bsp/lm3s8962/SConstruct
index 12d70ecd16..b573f7b0c2 100644
--- a/bsp/lm3s8962/SConstruct
+++ b/bsp/lm3s8962/SConstruct
@@ -2,7 +2,11 @@ import os
import sys
import rtconfig
-RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
+if os.getenv('RTT_ROOT'):
+ RTT_ROOT = os.getenv('RTT_ROOT')
+else:
+ RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
+
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import *
diff --git a/bsp/lm3s8962/rtconfig.py b/bsp/lm3s8962/rtconfig.py
index 9c753dee70..8c04ba5b74 100644
--- a/bsp/lm3s8962/rtconfig.py
+++ b/bsp/lm3s8962/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')
+
#device options
PART_TYPE = 'PART_LM3S8962'
@@ -12,6 +17,15 @@ if CROSS_TOOL == 'gcc':
elif CROSS_TOOL == 'keil':
PLATFORM = 'armcc'
EXEC_PATH = 'E:/Keil'
+elif CROSS_TOOL == 'iar':
+ print '================ERROR============================'
+ print 'Not support iar yet!'
+ print '================================================='
+ exit(0)
+
+if os.getenv('RTT_EXEC_PATH'):
+ EXEC_PATH = os.getenv('RTT_EXEC_PATH')
+
BUILD = 'debug'
if PLATFORM == 'gcc':