1
0

SConscript 580 B

123456789101112131415161718192021222324252627
  1. # RT-Thread building script for component
  2. from building import *
  3. Import('rtconfig')
  4. cwd = GetCurrentDir()
  5. src = Glob('*.c') + Glob('*.cpp')
  6. CPPPATH = [cwd]
  7. if rtconfig.PLATFORM == 'armcc':
  8. src += Glob('*_rvds.S')
  9. if rtconfig.PLATFORM == 'gcc':
  10. src += Glob('*_init.S')
  11. src += Glob('*_gcc.S')
  12. if rtconfig.PLATFORM == 'iar':
  13. src += Glob('*_iar.S')
  14. # There is no GIC in Raspi3, so remove it from source files.
  15. if GetDepend('SOC_BCM283x'):
  16. SrcRemove(src, ['gic.c'])
  17. group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
  18. Return('group')