2011-06-15 08:27:46 +08:00
|
|
|
import rtconfig
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
2011-06-30 21:54:31 +08:00
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c', 'stm32f10x_it.c']
|
2011-06-15 08:27:46 +08:00
|
|
|
src_drv = ['usart.c', 'serial.c']
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_DFS'):
|
|
|
|
src_drv += ['msd.c']
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_LWIP'):
|
|
|
|
src_drv += ['stm32_eth.c']
|
|
|
|
|
|
|
|
src = src_bsp + src_drv
|
2011-06-30 21:54:31 +08:00
|
|
|
CPPPATH = [GetCurrentDir()]
|
|
|
|
CPPDEFINES = []
|
2011-06-15 08:27:46 +08:00
|
|
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|