SConscript 547 B

12345678910111213141516171819202122232425
  1. from building import *
  2. objs = []
  3. cwd = GetCurrentDir()
  4. list = os.listdir(cwd)
  5. CPPPATH = [cwd + '/../../include']
  6. src = []
  7. if GetDepend(['RT_SERIAL_EARLY_HVC']):
  8. src += ['serial-early-hvc.c']
  9. if GetDepend(['RT_SERIAL_PL011']):
  10. src += ['serial-pl011.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')