update the m16c62p project

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2187 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
dzzxzz@gmail.com
2012-06-26 06:41:59 +00:00
parent f1e6f2f6ca
commit bb529858fe
22 changed files with 1906 additions and 145 deletions
+8 -14
View File
@@ -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')