1
0

SConscript 773 B

123456789101112131415161718192021
  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. CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU, RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/common']
  14. group = DefineGroup(rtconfig.CPU.upper(), src, depend = [''], CPPPATH = CPPPATH)
  15. Return('group')