2010-11-20 20:31:00 +08:00
|
|
|
import rtconfig
|
2010-04-19 13:42:12 +08:00
|
|
|
Import('RTT_ROOT')
|
2010-11-20 20:31:00 +08:00
|
|
|
from building import *
|
2010-04-19 13:42:12 +08:00
|
|
|
|
2010-11-22 21:20:22 +08:00
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c']
|
2010-09-23 19:15:41 +08:00
|
|
|
src_drv = ['console.c', 'led.c']
|
2010-04-19 13:42:12 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
if GetDepend('RT_USING_DFS'):
|
2010-04-19 13:42:12 +08:00
|
|
|
src_drv += ['sdcard.c']
|
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
if GetDepend('RT_USING_LWIP'):
|
2010-04-19 13:42:12 +08:00
|
|
|
src_drv += ['dm9000.c']
|
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
if GetDepend('RT_USING_RTGUI'):
|
2010-10-02 20:40:18 +08:00
|
|
|
src_drv += ['touch.c', 'key.c', 'calibration.c']
|
2010-04-19 13:42:12 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
if GetDepend('RT_USING_FTK'):
|
2010-10-19 20:11:06 +08:00
|
|
|
src_drv += ['touch.c', 'key.c']
|
2010-10-02 23:45:09 +08:00
|
|
|
|
2010-11-22 21:20:22 +08:00
|
|
|
if GetDepend('RT_USING_RTI'):
|
|
|
|
src_drv += ['rti_stub.c']
|
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
if GetDepend('RT_USING_RTGUI') or GetDepend('RT_USING_FTK'):
|
2010-04-19 13:42:12 +08:00
|
|
|
if rtconfig.RT_USING_LCD_TYPE == 'PNL_A70':
|
|
|
|
src_drv += ['lcd_a70.c']
|
|
|
|
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_N35':
|
|
|
|
src_drv += ['lcd_n35.c']
|
|
|
|
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_T35':
|
|
|
|
src_drv += ['lcd_t35.c']
|
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
src = File(src_bsp + src_drv)
|
2011-07-04 07:15:43 +08:00
|
|
|
CPPPATH = [GetCurrentDir()]
|
2010-11-20 20:31:00 +08:00
|
|
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
|
2010-04-19 13:42:12 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
Return('group')
|