2011-06-30 22:15:08 +08:00
|
|
|
import rtconfig
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c', 'stm32f20x_it.c']
|
2011-09-23 12:55:00 +08:00
|
|
|
src_drv = ['usart.c', 'serial.c', 'rtc.c']
|
2011-06-30 22:15:08 +08:00
|
|
|
|
2011-09-30 14:32:07 +08:00
|
|
|
if GetDepend('RT_USING_DFS'):
|
|
|
|
src_drv += ['stm32f2xx_eth.c']
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_LWIP'):
|
|
|
|
src_drv += ['sdio_sd.c']
|
|
|
|
|
2011-06-30 22:15:08 +08:00
|
|
|
src = src_bsp + src_drv
|
2011-07-01 07:25:17 +08:00
|
|
|
CPPPATH = [GetCurrentDir()]
|
|
|
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
|
2011-06-30 22:15:08 +08:00
|
|
|
|
|
|
|
Return('group')
|