mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-25 06:13:56 +08:00
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:
+8
-14
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user