mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-14 17:49:27 +08:00
18 lines
462 B
Python
18 lines
462 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
objs = []
|
|
|
|
for d in os.listdir(os.path.join(cwd, '..')):
|
|
if d not in ('M0', 'M4'):
|
|
path = os.path.join('..', d, 'SConscript')
|
|
if os.path.isfile(os.path.join(cwd, path)):
|
|
objs = objs + SConscript(os.path.join(cwd, path))
|
|
|
|
for d in os.listdir(cwd):
|
|
p = os.path.join(d, 'SConscript');
|
|
if os.path.isfile(os.path.join(cwd, p)):
|
|
objs = objs + SConscript(p)
|
|
|
|
Return('objs')
|