Changeset e02d02e in rtems-lwip


Ignore:
Timestamp:
10/27/22 21:04:27 (7 months ago)
Author:
Duc Doan <dtbpkmte@…>
Branches:
master
Children:
99e9191
Parents:
bfef87f
git-author:
Duc Doan <dtbpkmte@…> (10/27/22 21:04:27)
git-committer:
Joel Sherrill <joel@…> (10/27/22 21:08:34)
Message:

lwip.py: Use ant_glob instead of os.walk()

Updates #4714

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lwip.py

    rbfef87f re02d02e  
    111111
    112112    def walk_sources(path):
    113         sources = []
    114         for root, dirs, files in os.walk(path):
    115             for name in files:
    116                 ext = os.path.splitext(name)[1]
    117                 src_root = os.path.split(root)
    118                 path = os.path.join(src_root[0], src_root[1])
    119                 if ext == '.c' or ext == '.S':
    120                     sources.append(os.path.join(path, name))
    121         return sources
     113        return bld.path.ant_glob([path + '/**/*.c', path + '/**/*.S'])
    122114
    123115    if arch == 'arm':
Note: See TracChangeset for help on using the changeset viewer.