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/SConstruct | |
| 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/SConstruct')
| -rw-r--r-- | bsp/lpc176x/SConstruct | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bsp/lpc176x/SConstruct b/bsp/lpc176x/SConstruct index fddbc18a1c..9e9229fa3a 100644 --- a/bsp/lpc176x/SConstruct +++ b/bsp/lpc176x/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 *
|
