summaryrefslogtreecommitdiff
path: root/bsp/dm365/drivers/SConscript
blob: f3c3efac9a768741ee50483482367184092aabef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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')