4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 05:43:31 +08:00

[bsp][imxrt]优化imxrt的BSP下面的applications的Sconsript脚本 (#6236)

* 优化imxrt的BSP下面的applications的Sconsript脚本

* add import os for sconscript in imxrt
This commit is contained in:
xfwangqiang 2022-08-08 00:15:13 +08:00 committed by GitHub
parent 3c3bd647f7
commit 79934777d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 43 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import rtconfig
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
@ -13,4 +14,9 @@ else:
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group')

View File

@ -1,5 +1,6 @@
import rtconfig
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
@ -13,4 +14,9 @@ else:
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group')

View File

@ -1,5 +1,6 @@
import rtconfig
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
@ -13,4 +14,9 @@ else:
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group')

View File

@ -1,5 +1,6 @@
import rtconfig
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
@ -13,4 +14,9 @@ else:
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group')

View File

@ -1,5 +1,6 @@
import rtconfig
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
@ -13,4 +14,9 @@ else:
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group')

View File

@ -1,5 +1,6 @@
import rtconfig
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')

View File

@ -1,5 +1,6 @@
import rtconfig
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
@ -13,4 +14,9 @@ else:
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group')

View File

@ -1,5 +1,6 @@
import rtconfig
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
@ -13,4 +14,9 @@ else:
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group')