SConscript 539 B

1234567891011121314151617181920
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. src = Glob('*.c')
  6. path = [cwd]
  7. #remove other no use files
  8. #SrcRemove(src, 'i2c_iomaster.c')
  9. #SrcRemove(src, 'delay.c')
  10. if rtconfig.DEVICE_SERIES == 'SAMD20':
  11. path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd20']
  12. elif rtconfig.DEVICE_SERIES == 'SAMD21':
  13. path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd21_r21_da_ha1']
  14. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  15. Return('group')