SConscript 473 B

123456789101112131415161718192021
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. src = Glob('*.c')
  6. CPPPATH = [cwd]
  7. #remove other no use files
  8. if GetDepend('SAM_I2C_EXAMPLE') == False:
  9. SrcRemove(src, ['sam_i2c.c'])
  10. if GetDepend('SAM_LWIP_EXAMPLE') == False:
  11. SrcRemove(src, ['sam_gmac.c'])
  12. # You can select chips from the list above
  13. CPPDEFINES = []
  14. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
  15. Return('group')