1import os
2from building import *
3
4objs = []
5src = Glob('*.c')
6cwd  = GetCurrentDir()
7CPPPATH = [cwd]
8
9objs = DefineGroup('Drivers', src, depend = ['BSP_USING_HYPERRAM'], CPPPATH = CPPPATH)
10
11list = os.listdir(cwd)
12for item in list:
13    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
14        objs = objs + SConscript(os.path.join(item, 'SConscript'))
15
16Return('objs')
17