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