diff options
Diffstat (limited to 'lnetworking.py')
-rw-r--r-- | lnetworking.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lnetworking.py b/lnetworking.py index 490a4b5..8041a93 100644 --- a/lnetworking.py +++ b/lnetworking.py @@ -28,12 +28,13 @@ from rtems_waf import rtems import os source_files = [] include_files = [] +exclude_dirs = ['pppd'] + for root, dirs, files in os.walk("."): + [dirs.remove(d) for d in list(dirs) if d in exclude_dirs] for name in files: if name[-2:] == '.c': source_files.append(os.path.join(root, name)) - elif name[-2:] == '.h' and root[2:] not in include_files: - include_files.append(root[2:]) def build(bld): include_path = ['./', os.path.relpath(bld.env.PREFIX)] |