SConscript 563 B

123456789101112131415161718192021222324
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = os.path.join(str(Dir('#')), 'Drivers')
  5. src = Glob('*.c')
  6. CPPPATH = [cwd]
  7. # remove no need file.
  8. if GetDepend('RT_USING_LWIP') == False:
  9. SrcRemove(src, 'stm32f2_eth.c')
  10. if GetDepend('RT_USING_DFS') == False:
  11. SrcRemove(src, 'sdio_sd.c')
  12. #remove other no use files
  13. #SrcRemove(src, 'FM25Lx.c')
  14. #SrcRemove(src, '24LCxx.c')
  15. #MDK platform retarget. Not yet tested
  16. SrcRemove(src, 'stdio_Retarget.c')
  17. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
  18. Return('group')