rt-thread/bsp/samd21/board/SConscript

21 lines
537 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']
group = DefineGroup('Board', src, depend = [''], CPPPATH = path)
Return('group')