diff options
| author | [email protected] <[email protected]> | 2012-06-26 06:41:59 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-06-26 06:41:59 +0000 |
| commit | bb529858fe3b8f0722bd060e054523ee9441f685 (patch) | |
| tree | e1bea42120cc1cbe2e8efac94b177d974a6b2313 /bsp/m16c62p/SConscript | |
| parent | f1e6f2f6ca6033cca9487ba8af9b6663f0f74fb3 (diff) | |
update the m16c62p project
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2187 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/m16c62p/SConscript')
| -rw-r--r-- | bsp/m16c62p/SConscript | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/bsp/m16c62p/SConscript b/bsp/m16c62p/SConscript index 7f12549363..d9c64eb9f9 100644 --- a/bsp/m16c62p/SConscript +++ b/bsp/m16c62p/SConscript @@ -1,18 +1,12 @@ -import rtconfig
-Import('RTT_ROOT')
from building import *
-src_c = ['application.c', 'startup.c', 'board.c', 'bsp.c', 'uart.c']
+cwd = GetCurrentDir()
+objs = []
+list = os.listdir(cwd)
-# add for startup script
-if rtconfig.CROSS_TOOL == 'gcc':
- src_asm = ['start.S', 'vects.S', 'interrupts.S']
-elif rtconfig.CROSS_TOOL == 'iar':
- src_asm = ['cstartup.asm', 'interrupts.asm', 'vectors.asm']
+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 = File(src_c + src_asm)
-
-CPPPATH = [RTT_ROOT + '/bsp/m16c62p']
-group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
-
-Return('group')
+Return('objs')
|
