SConscript 1.0 KB

1234567891011121314151617181920212223242526272829
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. from gcc import *
  5. cwd = GetCurrentDir()
  6. src = []
  7. group = []
  8. CPPPATH = []
  9. if rtconfig.PLATFORM in ['iccarm'] + GetGCCLikePLATFORM():
  10. if rtconfig.PLATFORM == 'iccarm' or GetOption('target') != 'mdk5':
  11. src += Glob('./fsp/src/bsp/mcu/all/*.c')
  12. src += Glob('./fsp/src/bsp/mcu/all/cr/*.c')
  13. src += Glob('./fsp/src/bsp/mcu/r*/*.c')
  14. src += Glob('./fsp/src/bsp/cmsis/Device/RENESAS/Source/*.c')
  15. src += Glob('./fsp/src/bsp/cmsis/Device/RENESAS/Source/cr/*.c')
  16. src += Glob('./fsp/src/r_*/*.c')
  17. CPPPATH = [ cwd + '/arm/CMSIS_5/CMSIS/Core_R/Include',
  18. cwd + '/fsp/inc',
  19. cwd + '/fsp/inc/api',
  20. cwd + '/fsp/inc/instances',]
  21. if GetDepend('BSP_USING_COE_IO'):
  22. src += Glob('./fsp/src/rm_ethercat_ssc_port/*.c')
  23. CPPPATH += [cwd + '/fsp/src/rm_ethercat_ssc_port']
  24. group = DefineGroup('RZN', src, depend = [''], CPPPATH = CPPPATH)
  25. Return('group')