SConscript 479 B

123456789101112131415161718192021
  1. import os
  2. from building import *
  3. objs = []
  4. if GetDepend('ARCH_MM_MMU'):
  5. cwd = GetCurrentDir()
  6. src = Glob('*.c') + Glob('*_gcc.S')
  7. CPPPATH = [cwd]
  8. group = DefineGroup('mm', src, depend = [''], CPPPATH = CPPPATH)
  9. objs = [group]
  10. list = os.listdir(cwd)
  11. for d in list:
  12. path = os.path.join(cwd, d)
  13. if os.path.isfile(os.path.join(path, 'SConscript')):
  14. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  15. Return('objs')