19 lines
396 B
Python
19 lines
396 B
Python
# for module compiling
|
|
import os
|
|
Import('RTT_ROOT')
|
|
|
|
cwd = str(Dir('#'))
|
|
objs = []
|
|
|
|
# Exclude reference BSP from the build
|
|
EXCLUDE_DIRS = {'a15', 'phytium'}
|
|
|
|
for d in os.listdir(cwd):
|
|
if d in EXCLUDE_DIRS:
|
|
continue
|
|
path = os.path.join(cwd, d)
|
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
|
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
|
|
|
Return('objs')
|