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'):
|
2023-01-09 10:14:23 +08:00
|
|
|
src += ['gpio.c']
|
2015-09-04 12:30:20 +08:00
|
|
|
|
2018-09-06 14:12:28 +08:00
|
|
|
if GetDepend('RT_USING_I2C_CONTROL'):
|
2023-01-09 10:14:23 +08:00
|
|
|
src += ['i2c-davinci.c']
|
2015-09-04 12:30:20 +08:00
|
|
|
|
2018-09-06 14:12:28 +08:00
|
|
|
if GetDepend('RT_USING_SDIO_CONTROL'):
|
2023-01-09 10:14:23 +08:00
|
|
|
src += ['mmcsd.c']
|
2015-09-04 12:30:20 +08:00
|
|
|
|
2018-09-06 14:12:28 +08:00
|
|
|
if GetDepend('RT_USING_SPI_CONTROL'):
|
2023-01-09 10:14:23 +08:00
|
|
|
src += ['spi-davinci.c']
|
2015-09-04 12:30:20 +08:00
|
|
|
|
2018-09-06 14:12:28 +08:00
|
|
|
if GetDepend('RT_USING_EMAC'):
|
2023-01-09 10:14:23 +08:00
|
|
|
src += ['davinci_emac.c']
|
2015-09-04 12:30:20 +08:00
|
|
|
|
2020-12-19 16:49:11 +08:00
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
2015-09-04 12:30:20 +08:00
|
|
|
|
|
|
|
Return('group')
|