SConscript 555 B

12345678910111213141516171819202122232425
  1. from building import *
  2. objs = []
  3. if not GetDepend(['RT_USING_OFW']):
  4. Return('objs')
  5. cwd = GetCurrentDir()
  6. list = os.listdir(cwd)
  7. CPPPATH = [cwd, cwd + '/../include']
  8. src = Glob('*.c')
  9. if GetDepend('RT_USING_PIC') == False:
  10. SrcRemove(src, ['irq.c'])
  11. group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
  12. for d in list:
  13. path = os.path.join(cwd, d)
  14. if os.path.isfile(os.path.join(path, 'SConscript')):
  15. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  16. objs = objs + group
  17. Return('objs')