2010-04-19 13:42:12 +08:00
|
|
|
Import('env')
|
|
|
|
Import('projects')
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
# group definitions
|
|
|
|
group = {}
|
|
|
|
group['name'] = 'Startup'
|
|
|
|
group['CCFLAGS'] = ''
|
|
|
|
group['CPPPATH'] = [RTT_ROOT + '/bsp/mini2440']
|
|
|
|
group['CPPDEFINES'] = []
|
|
|
|
group['LINKFLAGS'] = ''
|
|
|
|
|
2010-10-02 20:40:18 +08:00
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c', 'calendar.c']
|
2010-09-23 19:15:41 +08:00
|
|
|
src_drv = ['console.c', 'led.c']
|
2010-04-19 13:42:12 +08:00
|
|
|
|
|
|
|
if rtconfig.RT_USING_DFS:
|
|
|
|
src_drv += ['sdcard.c']
|
|
|
|
|
|
|
|
if rtconfig.RT_USING_LWIP:
|
|
|
|
src_drv += ['dm9000.c']
|
|
|
|
|
|
|
|
if rtconfig.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-10-02 23:45:09 +08:00
|
|
|
if rtconfig.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-04-19 13:42:12 +08:00
|
|
|
if rtconfig.RT_USING_RTGUI:
|
|
|
|
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-10-02 20:40:18 +08:00
|
|
|
if rtconfig.RT_USING_FTK:
|
|
|
|
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-04-19 13:42:12 +08:00
|
|
|
group['src'] = File(src_bsp + src_drv)
|
|
|
|
|
|
|
|
# add group to project list
|
|
|
|
projects.append(group)
|
|
|
|
|
|
|
|
env.Append(CCFLAGS = group['CCFLAGS'])
|
|
|
|
env.Append(CPPPATH = group['CPPPATH'])
|
|
|
|
env.Append(CPPDEFINES = group['CPPDEFINES'])
|
|
|
|
env.Append(LINKFLAGS = group['LINKFLAGS'])
|
|
|
|
|
|
|
|
obj = env.Object(group['src'])
|
|
|
|
|
|
|
|
Return('obj')
|