SConscript 1.1 KB

12345678910111213141516171819202122232425262728293031
  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']:
  10. print("\nThe current project does not support IAR build\n")
  11. Return('group')
  12. elif rtconfig.PLATFORM in GetGCCLikePLATFORM():
  13. if GetOption('target') != 'mdk5':
  14. src += Glob(cwd + '/fsp/src/bsp/mcu/all/*.c')
  15. src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c']
  16. src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c']
  17. src += Glob(cwd + '/fsp/src/r_*/*.c')
  18. CPPPATH = [ cwd + '/arm/CMSIS_5/CMSIS/Core/Include',
  19. cwd + '/fsp/inc',
  20. cwd + '/fsp/inc/api',
  21. cwd + '/fsp/inc/instances',
  22. cwd + '/tes/dave2d/inc']
  23. if GetDepend('BSP_USING_LCD') or GetDepend('BSP_USING_LVGL'):
  24. src += Glob(cwd + '/tes/dave2d/src/*.c')
  25. CPPPATH += [cwd + '/tes/dave2d/inc']
  26. group = DefineGroup('ra', src, depend = [''], CPPPATH = CPPPATH)
  27. Return('group')