1
0

SConscript 1.2 KB

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