diff options
| author | Meco Man <[email protected]> | 2021-10-15 15:14:30 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-10-15 15:14:30 -0400 |
| commit | fa4b7ec8fdb45e533e17283d4537d50ee4e7dbb2 (patch) | |
| tree | a12b350ec0c6de59ccc10e38acf5ddad642c8257 /bsp/stm32/stm32f103-blue-pill/applications/SConscript | |
| parent | 9fe546b0d86b17c64e57447913c8a9f3a9c40534 (diff) | |
[stm32][bsp] The sconscript script in the application folder increases the recursion searching capability
Diffstat (limited to 'bsp/stm32/stm32f103-blue-pill/applications/SConscript')
| -rw-r--r-- | bsp/stm32/stm32f103-blue-pill/applications/SConscript | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bsp/stm32/stm32f103-blue-pill/applications/SConscript b/bsp/stm32/stm32f103-blue-pill/applications/SConscript index ef1c39fd83..d6acfac79f 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/SConscript +++ b/bsp/stm32/stm32f103-blue-pill/applications/SConscript @@ -1,11 +1,16 @@ -Import('RTT_ROOT') -Import('rtconfig') from building import * +import os cwd = GetCurrentDir() src = Glob('*.c') -CPPPATH = [cwd, ] +CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) +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') |
