diff options
Diffstat (limited to 'bsp/lpc43xx/M0/SConscript')
| -rw-r--r-- | bsp/lpc43xx/M0/SConscript | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/bsp/lpc43xx/M0/SConscript b/bsp/lpc43xx/M0/SConscript index e2c31c0755..285e5c295f 100644 --- a/bsp/lpc43xx/M0/SConscript +++ b/bsp/lpc43xx/M0/SConscript @@ -2,12 +2,16 @@ from building import * cwd = GetCurrentDir() objs = [] -list = os.listdir(os.path.join(cwd, '..')) -for d in list: - if (d != 'M4' and d != 'M0'): - path = os.path.join(cwd, '..', d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(path, 'SConscript')) +for d in os.listdir(os.path.join(cwd, '..')): + if d not in ('M0', 'M4'): + path = os.path.join(cwd, '..', d, 'SConscript') + if os.path.isfile(path): + objs = objs + SConscript(path) + +for d in os.listdir(cwd): + p = os.path.join(cwd, d, 'SConscript'); + if os.path.isfile(p): + objs = objs + SConscript(p) Return('objs') |
