[stm32l475] 修复board文件夹sconscript脚本没有继续扫描子文件夹的问题

This commit is contained in:
Meco Man 2021-10-24 01:59:31 -04:00
parent 468063ae59
commit e32626da30
1 changed files with 6 additions and 0 deletions

View File

@ -56,4 +56,10 @@ elif rtconfig.CROSS_TOOL == 'iar':
CPPDEFINES = ['STM32L475xx'] CPPDEFINES = ['STM32L475xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
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') Return('group')