You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
605 B
31 lines
605 B
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
|
|
""")
|
|
|
|
if GetDepend('RT_USING_GPIO_DEVICE'):
|
|
src += ['gpio.c']
|
|
|
|
if GetDepend('RT_USING_I2C_CONTROL'):
|
|
src += ['i2c-davinci.c']
|
|
|
|
if GetDepend('RT_USING_SDIO_CONTROL'):
|
|
src += ['mmcsd.c']
|
|
|
|
if GetDepend('RT_USING_SPI_CONTROL'):
|
|
src += ['spi-davinci.c']
|
|
|
|
if GetDepend('RT_USING_EMAC'):
|
|
src += ['davinci_emac.c']
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
|
|
|
Return('group')
|
|
|