blob: a32002a272ca81c96412c01521c5476b50c1e364 (
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')
|