2022-06-09 14:27:30 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2023-01-09 10:14:23 +08:00
|
|
|
src = Glob('*.c')
|
2022-06-09 14:27:30 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('CommonDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
list = os.listdir(cwd)
|
|
|
|
for d in list:
|
|
|
|
path = os.path.join(cwd, d)
|
|
|
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
|
|
|
group = group + SConscript(os.path.join(d, 'SConscript'))
|
|
|
|
|
|
|
|
Return('group')
|