SConscript 862 B

12345678910111213141516171819202122232425262728293031
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. # get current directory
  5. cwd = GetCurrentDir()
  6. # The set of source files associated with this SConscript file.
  7. src = Split("""
  8. CME_M7/system_cmem7.c
  9. """)
  10. # add for startup script
  11. if rtconfig.CROSS_TOOL == 'gcc':
  12. src += ['Device/Nuvoton/NUC472_442/Source/GCC/startup_NUC472_442.c']
  13. elif rtconfig.CROSS_TOOL == 'keil':
  14. src += ['CME_M7/startup/arm/startup_cmem7.s']
  15. elif rtconfig.CROSS_TOOL == 'iar':
  16. src += ['Device/Nuvoton/NUC472_442/Source/IAR/startup_NUC472_442.S']
  17. path = [cwd + '/CME_M7']
  18. #ath += [cwd + '/StdDriver/inc']
  19. # if GetDepend(['RT_USING_BSP_CMSIS']):
  20. # path += [cwd + '/CMSIS/Include']
  21. # elif GetDepend(['RT_USING_RTT_CMSIS']):
  22. # path += [RTT_ROOT + '/components/CMSIS/Include']
  23. group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = path)
  24. Return('group')