summaryrefslogtreecommitdiff
path: root/bsp/microchip/common/board/SConscript
blob: 71d87c5ed4790973aed9382b13250b8f94f2acf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]

#remove other no use files
if GetDepend('SAM_I2C_EXAMPLE') == False:
    SrcRemove(src, ['sam_i2c.c'])

if GetDepend('SAM_LWIP_EXAMPLE') == False:
    SrcRemove(src, ['sam_gmac.c'])

# You can select chips from the list above
CPPDEFINES = []

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

Return('group')