You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
474 B
22 lines
474 B
10 months ago
|
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')
|