diff options
author | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-02-11 19:56:25 -0700 |
---|---|---|
committer | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-03-02 14:29:29 -0700 |
commit | 4e49c230d470b0aeb4d40453becd17b58677e05d (patch) | |
tree | e72f4e69ee2c40931026c5203f89097f55897263 /lnetworking.py | |
parent | Add networking01 test from RTEMS testsuites (diff) | |
download | rtems-net-legacy-4e49c230d470b0aeb4d40453becd17b58677e05d.tar.bz2 |
lnetworking: install the header files
Diffstat (limited to 'lnetworking.py')
-rw-r--r-- | lnetworking.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lnetworking.py b/lnetworking.py index 69796a8..6489b81 100644 --- a/lnetworking.py +++ b/lnetworking.py @@ -29,15 +29,19 @@ from rtems_waf import rtems import os source_files = [] -include_files = [] +include_files = {} test_source = [] exclude_dirs = ['pppd', 'nfsclient', 'testsuites'] +exclude_headers = ['rtems-bsd-user-space.h', 'rtems-bsd-kernel-space.h'] for root, dirs, files in os.walk("."): [dirs.remove(d) for d in list(dirs) if d in exclude_dirs] + include_files[root[2:]] = [] for name in files: if name[-2:] == '.c': source_files.append(os.path.join(root, name)) + if name[-2:] == '.h' and name not in exclude_headers: + include_files[root[2:]].append(os.path.join(root,name)) for root, dirs, files in os.walk('./testsuites'): for name in files: @@ -63,3 +67,5 @@ def build(bld): source = test_source) bld.install_files(os.path.join('${PREFIX}', arch_lib_path), ["libnetworking.a"]) + for i in include_files: + bld.install_files(os.path.join('${PREFIX}', arch_lib_path, i), include_files[i]) |