2011-04-05 20:49:01 +08:00
|
|
|
import rtconfig
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c']
|
|
|
|
src_drv = ['console.c']
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_LED'):
|
|
|
|
src_drv += ['led.c']
|
|
|
|
|
2012-02-21 23:27:21 +08:00
|
|
|
if GetDepend('RT_USING_SDIO'):
|
2011-10-23 17:46:20 +08:00
|
|
|
src_drv += ['at91_mci.c']
|
2011-04-05 20:49:01 +08:00
|
|
|
|
|
|
|
if GetDepend('RT_USING_LWIP'):
|
|
|
|
src_drv += ['macb.c']
|
|
|
|
|
|
|
|
|
|
|
|
src = File(src_bsp + src_drv)
|
|
|
|
CPPPATH = [RTT_ROOT + '/bsp/at91sam9260']
|
|
|
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|