diff options
| author | wuyangyong <[email protected]> | 2011-12-20 09:11:13 +0000 |
|---|---|---|
| committer | wuyangyong <[email protected]> | 2011-12-20 09:11:13 +0000 |
| commit | dd47ccd6ca397e0d50d38eaaad6fa3509d424c3b (patch) | |
| tree | b4f06184554bb34701d24effe8a95a50ffafd4bb /bsp/lpc2478/SConscript | |
| parent | f1b07348c24913f1a7f5c5154d428893a90a6957 (diff) | |
update bsp lpc2478.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1853 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/lpc2478/SConscript')
| -rw-r--r-- | bsp/lpc2478/SConscript | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/bsp/lpc2478/SConscript b/bsp/lpc2478/SConscript index 291cde94ea..a425264923 100644 --- a/bsp/lpc2478/SConscript +++ b/bsp/lpc2478/SConscript @@ -1,11 +1,14 @@ -import rtconfig
+# for module compiling
+import os
Import('RTT_ROOT')
-from building import *
-src_bsp = ['application.c', 'startup.c', 'board.c']
+cwd = str(Dir('#'))
+objs = []
+list = os.listdir(cwd)
-src = File(src_bsp)
-CPPPATH = [RTT_ROOT + '/bsp/lpc2478']
-group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
+for d in list:
+ path = os.path.join(cwd, d)
+ if os.path.isfile(os.path.join(path, 'SConscript')):
+ objs = objs + SConscript(os.path.join(d, 'SConscript'))
-Return('group')
+Return('objs')
|
