SConscript 892 B

123456789101112131415161718192021222324252627
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. comm = rtconfig.ARCH + '/common'
  5. path = rtconfig.ARCH + '/' + rtconfig.CPU
  6. # The set of source files associated with this SConscript file.
  7. if rtconfig.PLATFORM == 'armcc':
  8. src = Glob(path + '/*.c') + Glob(path + '/*_rvds.S') + Glob(comm + '/*.c')
  9. if rtconfig.PLATFORM == 'gcc':
  10. src = Glob(path + '/*.c') + Glob(path + '/*_gcc.S') + Glob(comm + '/*.c') + Glob(path + '/*_init.S')
  11. if rtconfig.PLATFORM == 'iar':
  12. src = Glob(path + '/*.c') + Glob(path + '/*_iar.S') + Glob(comm + '/*.c')
  13. if rtconfig.PLATFORM == 'cl':
  14. src = Glob(path + '/*.c')
  15. if rtconfig.PLATFORM == 'mingw':
  16. src = Glob(path + '/*.c')
  17. CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU, RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/common']
  18. group = DefineGroup(rtconfig.CPU.upper(), src, depend = [''], CPPPATH = CPPPATH)
  19. Return('group')