summaryrefslogtreecommitdiff
path: root/bsp/at91/at91sam9g45/drivers/SConscript
blob: ad649d8785c2cc588490c2416a73a3d3d5e81b17 (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
Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd     = os.path.join(str(Dir('#')), 'drivers')

# add the general drvers.
src = Split("""
board.c
usart.c
""")

# add Ethernet drvers.
if GetDepend('RT_USING_LED'):
    src += ['led.c']

if GetDepend('RT_USING_SDIO'):
    src += ['at91_mci.c']

if GetDepend('RT_USING_LWIP'):
    src += ['macb.c']

CPPPATH = [cwd]

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)

Return('group')