diff options
| author | [email protected] <[email protected]> | 2012-04-20 03:28:15 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-04-20 03:28:15 +0000 |
| commit | b05e37893abe3d41be343d04ad5c9f9681c938e4 (patch) | |
| tree | 29cf409a59b08f71b9c1820d1bddcb16fb12c2b7 /bsp/mb9bf506r/SConscript | |
| parent | 4f381a1c68920caa1b369d45f01f1c9e66a19441 (diff) | |
according to the LPC176x, make a new BSP file structure for mb9bf506r
and add a template.ewp file for updating the IAR project
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2095 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/mb9bf506r/SConscript')
| -rw-r--r-- | bsp/mb9bf506r/SConscript | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/bsp/mb9bf506r/SConscript b/bsp/mb9bf506r/SConscript index d09b858deb..d9c64eb9f9 100644 --- a/bsp/mb9bf506r/SConscript +++ b/bsp/mb9bf506r/SConscript @@ -1,16 +1,12 @@ -import rtconfig -Import('RTT_ROOT') -from building import * - -src_bsp = ['application.c', 'startup.c', 'board.c', 'led.c', 'console.c'] -src_drv = ['serial.c', 'nand.c'] - -if GetDepend('RT_USING_RTGUI'): - src_drv += ['info.c'] - -src = src_bsp + src_drv -CPPPATH = [GetCurrentDir()] -CPPDEFINES = [] -group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) - -Return('group') +from building import *
+
+cwd = GetCurrentDir()
+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'))
+
+Return('objs')
|
