SConscript 700 B

12345678910111213141516171819202122232425
  1. import rtconfig
  2. Import('RTT_ROOT')
  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. Nuvoton/NUC472_442/Source/system_NUC472_442.c
  9. """)
  10. # add for startup script
  11. if rtconfig.CROSS_TOOL == 'gcc':
  12. src = src + ['Nuvoton/NUC472_442/Source/GCC/startup.c']
  13. elif rtconfig.CROSS_TOOL == 'keil':
  14. src = src + ['Nuvoton/NUC472_442/Source/ARM/startup_NUC472_442.s']
  15. elif rtconfig.CROSS_TOOL == 'iar':
  16. src = src + ['Nuvoton/NUC472_442/Source/IAR/startup_NUC472_442.s']
  17. path = [cwd + '/Nuvoton/NUC472_442/Include',]
  18. group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = path)
  19. Return('group')