diff options
| author | [email protected] <[email protected]> | 2012-04-09 03:32:35 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-04-09 03:32:35 +0000 |
| commit | a7810e12b9c2769419bac6582fae079d15ab9366 (patch) | |
| tree | 8c5fe34a950502e5f34d2ce2aab4d8725bb0f3f7 /bsp/lpc178x/SConstruct | |
| parent | 9c804a28a442837d222358b63821c0ebf4efc811 (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/lpc178x/SConstruct')
| -rw-r--r-- | bsp/lpc178x/SConstruct | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bsp/lpc178x/SConstruct b/bsp/lpc178x/SConstruct index ff91371b27..5522d3f897 100644 --- a/bsp/lpc178x/SConstruct +++ b/bsp/lpc178x/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 *
|
