1
0

SConscript 503 B

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