rt-thread/bsp/samd21/board/SConscript

21 lines
539 B
Python
Raw Normal View History

2017-08-30 12:18:28 +08:00
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
path = [cwd]
#remove other no use files
#SrcRemove(src, 'i2c_iomaster.c')
#SrcRemove(src, 'delay.c')
if rtconfig.DEVICE_SERIES == 'SAMD20':
path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd20']
elif rtconfig.DEVICE_SERIES == 'SAMD21':
path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd21_r21_da_ha1']
2020-12-19 16:49:11 +08:00
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
2017-08-30 12:18:28 +08:00
Return('group')