diff options
| author | [email protected] <[email protected]> | 2012-01-29 07:06:47 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-01-29 07:06:47 +0000 |
| commit | bf553dccf1dc277e89047cb4640eb7aaf00dbd41 (patch) | |
| tree | d156ca5cdf1922819667655548291840e2ecc598 /bsp | |
| parent | 4d7fe31bc2ac836e234166916be7f1e4cd972cab (diff) | |
change the SConstruct in ls1bdev in order to use the rt-thread eclipse wizard
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1925 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/ls1bdev/SConstruct | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bsp/ls1bdev/SConstruct b/bsp/ls1bdev/SConstruct index 5a5e89a0eb..d76d68a4a2 100644 --- a/bsp/ls1bdev/SConstruct +++ b/bsp/ls1bdev/SConstruct @@ -2,7 +2,10 @@ 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 *
|
