[nano] rt-thread susport nano option

This commit is contained in:
Meco Man
2023-11-27 00:15:36 +08:00
committed by guo
parent 53acd953ab
commit 005828eba7
8 changed files with 34 additions and 44 deletions

View File

@@ -7,9 +7,10 @@ cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))
if not GetDepend('RT_USING_NANO'):
for d in list:
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')