SConscript 743 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # RT-Thread building script for component
  2. from building import *
  3. Import('rtconfig')
  4. cwd = GetCurrentDir()
  5. src = Split('''
  6. cache.c
  7. cpu.c
  8. mmu.c
  9. stack.c
  10. ''')
  11. CPPPATH = [cwd]
  12. if GetDepend('RT_USING_GIC_V2'):
  13. src += ['interrupt.c']
  14. src += ['gic.c']
  15. src += ['trap.c']
  16. if GetDepend('RT_USING_GIC_V3'):
  17. src += ['interrupt.c']
  18. src += ['gicv3.c']
  19. src += ['trap.c']
  20. if rtconfig.PLATFORM == 'armcc':
  21. src += Glob('*_rvds.S')
  22. if rtconfig.PLATFORM == 'gcc':
  23. src += Glob('*_init.S')
  24. src += Glob('*_gcc.S')
  25. if rtconfig.PLATFORM == 'iar':
  26. src += Glob('*_iar.S')
  27. if rtconfig.PLATFORM == 'iar':
  28. src += Glob('*_iar.S')
  29. group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
  30. Return('group')