2010-11-20 12:31:00 +00:00
|
|
|
import rtconfig
|
2010-04-19 08:23:21 +00:00
|
|
|
Import('RTT_ROOT')
|
2010-11-20 12:31:00 +00:00
|
|
|
from building import *
|
2010-04-19 08:23:21 +00:00
|
|
|
|
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c']
|
2010-05-24 08:39:03 +00:00
|
|
|
src_drv = ['uart.c', 'led.c']
|
2010-04-19 08:23:21 +00:00
|
|
|
|
2010-11-20 12:31:00 +00:00
|
|
|
if GetDepend('RT_USING_DFS'):
|
2010-05-24 08:39:03 +00:00
|
|
|
src_drv += ['sd.c', 'spi.c']
|
|
|
|
|
2010-11-20 12:31:00 +00:00
|
|
|
if GetDepend('RT_USING_LWIP'):
|
2010-05-25 06:24:18 +00:00
|
|
|
src_drv += ['emac.c']
|
|
|
|
|
2011-10-13 17:54:59 +00:00
|
|
|
src = File(src_bsp + src_drv )
|
|
|
|
CPPPATH = [ GetCurrentDir() ]
|
2010-11-20 12:31:00 +00:00
|
|
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
|
2010-04-19 08:23:21 +00:00
|
|
|
|
2010-11-20 12:31:00 +00:00
|
|
|
Return('group')
|