2011-06-02 12:42:57 +08:00
|
|
|
Import('RTT_ROOT')
|
2011-06-19 10:47:51 +08:00
|
|
|
Import('rtconfig')
|
2011-06-02 12:42:57 +08:00
|
|
|
from building import *
|
|
|
|
|
2011-09-25 10:28:07 +08:00
|
|
|
src = Split('''
|
|
|
|
device.c
|
|
|
|
thread.c
|
|
|
|
scheduler.c
|
|
|
|
timer.c
|
|
|
|
irq.c
|
|
|
|
kservice.c
|
|
|
|
clock.c
|
|
|
|
object.c
|
|
|
|
mempool.c
|
|
|
|
ipc.c
|
|
|
|
idle.c
|
|
|
|
''')
|
|
|
|
|
2011-06-02 12:42:57 +08:00
|
|
|
CPPPATH = [RTT_ROOT + '/include']
|
2011-06-19 10:47:51 +08:00
|
|
|
if rtconfig.CROSS_TOOL == 'keil' and GetDepend('RT_USING_MODULE') == True:
|
|
|
|
LINKFLAGS = ' --keep __rtmsym_* '
|
|
|
|
else:
|
|
|
|
LINKFLAGS = ''
|
2011-09-25 10:28:07 +08:00
|
|
|
|
|
|
|
if GetDepend('RT_USING_MODULE'):
|
|
|
|
src += Split('rtm.c')
|
|
|
|
src += Split('module.c')
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_SLAB'):
|
|
|
|
src += Split('slab.c')
|
|
|
|
else:
|
|
|
|
src += Split('mem.c')
|
|
|
|
|
2011-06-19 10:47:51 +08:00
|
|
|
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
|
2011-06-02 12:42:57 +08:00
|
|
|
|
|
|
|
Return('group')
|