dzzxzz@gmail.com 2c45dc2041 fixed compiling error in at91sam9260
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2182 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-25 04:02:59 +00:00

25 lines
586 B
Python
Executable File

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']
if GetDepend('RT_USING_SDIO'):
src_drv += ['at91_mci.c']
if GetDepend('RT_USING_LWIP'):
src_drv += ['macb.c']
if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'):
src_drv += ['at91_i2c_gpio.c']
src = File(src_bsp + src_drv)
CPPPATH = [RTT_ROOT + '/bsp/at91sam9260']
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
Return('group')