1from building import * 2 3cwd = GetCurrentDir() 4src = Glob('*.c') 5list = os.listdir(cwd) 6CPPPATH = [cwd + '/../inc' , cwd + '/libfdt'] 7objs = [] 8 9group = DefineGroup('FDT', src, depend = ['RT_USING_FDT'], CPPPATH = CPPPATH) 10 11for 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')) 15objs = objs + group 16 17Return('objs') 18