summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijay@rtems.org>2021-02-11 19:56:25 -0700
committerVijay Kumar Banerjee <vijay@rtems.org>2021-03-02 14:29:29 -0700
commit4e49c230d470b0aeb4d40453becd17b58677e05d (patch)
treee72f4e69ee2c40931026c5203f89097f55897263
parentAdd networking01 test from RTEMS testsuites (diff)
downloadrtems-net-legacy-4e49c230d470b0aeb4d40453becd17b58677e05d.tar.bz2
lnetworking: install the header files
-rw-r--r--lnetworking.py8
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])