rt-thread/bsp/dm365/drivers/SConscript

32 lines
590 B
Python
Raw Normal View History

2015-09-04 12:30:20 +08:00
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
#src_drv = ['']
# The set of source files associated with this SConscript file.
path = [cwd]
src = Split("""
davinci_serial.c
""")
2018-09-06 14:12:28 +08:00
if GetDepend('RT_USING_GPIO_DEVICE'):
2015-09-04 12:30:20 +08:00
src += ['gpio.c']
2018-09-06 14:12:28 +08:00
if GetDepend('RT_USING_I2C_CONTROL'):
2015-09-04 12:30:20 +08:00
src += ['i2c-davinci.c']
2018-09-06 14:12:28 +08:00
if GetDepend('RT_USING_SDIO_CONTROL'):
2015-09-04 12:30:20 +08:00
src += ['mmcsd.c']
2018-09-06 14:12:28 +08:00
if GetDepend('RT_USING_SPI_CONTROL'):
2015-09-04 12:30:20 +08:00
src += ['spi-davinci.c']
2018-09-06 14:12:28 +08:00
if GetDepend('RT_USING_EMAC'):
2015-09-04 12:30:20 +08:00
src += ['davinci_emac.c']
group = DefineGroup('Startup', src, depend = [''], CPPPATH = path)
Return('group')