diff options
author | Duc Doan <dtbpkmte@gmail.com> | 2022-10-27 16:04:27 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-10-27 16:08:34 -0500 |
commit | e02d02e2ce29379c2d4bfb15fbd5b101e9bd58e8 (patch) | |
tree | 71c8894df81fc429fda38085bab2abb16d23e83f | |
parent | lwip.py: Change arch and bsp check method (diff) | |
download | rtems-lwip-e02d02e2ce29379c2d4bfb15fbd5b101e9bd58e8.tar.bz2 |
lwip.py: Use ant_glob instead of os.walk()
Updates #4714
-rw-r--r-- | lwip.py | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -110,15 +110,7 @@ def build(bld): source_files.extend(common_source_files) def walk_sources(path): - sources = [] - for root, dirs, files in os.walk(path): - for name in files: - ext = os.path.splitext(name)[1] - src_root = os.path.split(root) - path = os.path.join(src_root[0], src_root[1]) - if ext == '.c' or ext == '.S': - sources.append(os.path.join(path, name)) - return sources + return bld.path.ant_glob([path + '/**/*.c', path + '/**/*.S']) if arch == 'arm': # These files will not compile for BSPs other than TMS570 |