SConscript 688 B

123456789101112131415161718192021
  1. Import('env')
  2. Import('rtconfig')
  3. Import('RTT_ROOT')
  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_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.S') + Glob(comm + '/*.c')
  9. if rtconfig.PLATFORM == 'gcc':
  10. src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.S') + Glob(comm + '/*.c') + Glob(path + '/*_init.S')
  11. if rtconfig.PLATFORM == 'iar':
  12. src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.S') + Glob(comm + '/*.c')
  13. env.Append(CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU])
  14. obj = env.Object(src_local)
  15. Return('obj')