SConscript 619 B

1234567891011121314151617181920212223
  1. from shutil import copy
  2. from building import *
  3. Import('rtconfig')
  4. src = []
  5. cwd = GetCurrentDir()
  6. CPPPATH = [cwd]
  7. group = []
  8. if rtconfig.PLATFORM == 'gcc':
  9. if GetDepend('SOC_LS1B') or GetDepend('SOC_LS1C300'):
  10. try:
  11. # There is no 'sys/select.h' in these bsp's gcc toolchain; thus, we need to copy this file from 'nogcc/sys/select.h'
  12. copy("../../nogcc/sys/select.h", "./sys/select.h")
  13. except:
  14. pass
  15. if GetDepend('RT_USING_LIBC'):
  16. src += Glob('*.c')
  17. group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)
  18. Return('group')