diff options
| author | wuyangyong <[email protected]> | 2011-12-20 08:44:36 +0000 |
|---|---|---|
| committer | wuyangyong <[email protected]> | 2011-12-20 08:44:36 +0000 |
| commit | cd49d7353505d8ee10b778a3b3cce74ec7f22947 (patch) | |
| tree | 969e09b713a4528ee63c27ac5f56130226c1ee6f /bsp/lpc2148/SConscript | |
| parent | c80889473584b1c0e490d3cd6c00090f22f6dba8 (diff) | |
update bsp lpc2148.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1851 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/lpc2148/SConscript')
| -rw-r--r-- | bsp/lpc2148/SConscript | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/bsp/lpc2148/SConscript b/bsp/lpc2148/SConscript index 2a2a76c135..a425264923 100644 --- a/bsp/lpc2148/SConscript +++ b/bsp/lpc2148/SConscript @@ -1,15 +1,14 @@ -import rtconfig
+# for module compiling
+import os
Import('RTT_ROOT')
-from building import *
-src_bsp = ['application.c', 'startup.c', 'board.c']
-src_drv = []
+cwd = str(Dir('#'))
+objs = []
+list = os.listdir(cwd)
+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'))
-
-src = src_bsp + src_drv
-CPPPATH = [ GetCurrentDir() ]
-CPPDEFINES = []
-group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
-
-Return('group')
+Return('objs')
|
