diff options
author | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-02-26 11:20:08 -0700 |
---|---|---|
committer | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-03-02 14:32:11 -0700 |
commit | d7ec4aafe878af0cb15b5089b90a324aff74e9c8 (patch) | |
tree | eb53c0cd5b5eb4a60d35e9617b793fe726b97cd7 | |
parent | README: Update it to include repository and licence information. (diff) | |
download | rtems-net-legacy-d7ec4aafe878af0cb15b5089b90a324aff74e9c8.tar.bz2 |
Rename lnetworking to netlegacy
-rw-r--r-- | netlegacy.py (renamed from lnetworking.py) | 56 | ||||
-rw-r--r-- | wscript | 4 |
2 files changed, 32 insertions, 28 deletions
diff --git a/lnetworking.py b/netlegacy.py index f81f4fc..559fa17 100644 --- a/lnetworking.py +++ b/netlegacy.py @@ -1,7 +1,7 @@ # # RTEMS Project (https://www.rtems.org/) # -# Copyright (c) 2021 Vijay Kumar Banerjee <vijaykumar9597@gmail.com>. +# Copyright (c) 2021 Vijay Kumar Banerjee <vijay@rtems.org>. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -43,13 +43,14 @@ for root, dirs, files in os.walk("."): 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)) + include_files[root[2:]].append(os.path.join(root, name)) for root, dirs, files in os.walk('./testsuites'): for name in files: - if name [-2:] == '.c': + if name[-2:] == '.c': test_source.append(os.path.join(root, name)) + def build(bld): include_path = [] ip = '' @@ -60,7 +61,8 @@ def build(bld): include_path.extend(['.', os.path.relpath(bld.env.PREFIX), './testsuites/include', - os.path.relpath(os.path.join(bld.env.PREFIX, 'include')), + os.path.relpath(os.path.join(bld.env.PREFIX, + 'include')), './bsps/include']) arch_lib_path = rtems.arch_bsp_lib_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP) @@ -78,32 +80,34 @@ def build(bld): ip = ip + i + ' ' if (bsp in bsp_sources): - bld(target = 'bsp_objs', - features = 'c', - cflags = ['-O2', '-g'], - includes = ip, - source = bsp_sources[bsp]) + bld(target='bsp_objs', + features='c', + cflags=['-O2', '-g'], + includes=ip, + source=bsp_sources[bsp]) - bld(target = 'network_objects', - features = 'c', - includes = ip, - source = source_files) + bld(target='network_objects', + features='c', + includes=ip, + source=source_files) - bld(target = 'networking', - features = 'c cstlib', - use = ['bsp_objs', 'network_objects']) + bld(target='networking', + features='c cstlib', + use=['bsp_objs', 'network_objects']) - bld.program(target = 'networking01.exe', - features = 'c cprogram', - cflags = ['-O2', '-g'], - includes = ip, - use = 'networking', - source = test_source) + bld.program(target='networking01.exe', + features='c cprogram', + cflags=['-O2', '-g'], + includes=ip, + use='networking', + source=test_source) bld.install_files(os.path.join('${PREFIX}', arch_lib_path), - ["libnetworking.a"]) + ["libnetworking.a"]) bld.install_files(os.path.join('${PREFIX}', arch_lib_path), - [os.path.join('./bsps/include/libchip/', f) - for f in os.listdir('./bsps/include/libchip/')]) + [os.path.join('./bsps/include/libchip/', f) + for f in os.listdir('./bsps/include/libchip/')]) for i in include_files: - bld.install_files(os.path.join('${PREFIX}', arch_lib_path, i), include_files[i]) + bld.install_files(os.path.join('${PREFIX}', + arch_lib_path, i), + include_files[i]) @@ -28,7 +28,7 @@ from __future__ import print_function from rtems_waf import rtems -import lnetworking +import netlegacy import sys top = '.' @@ -56,6 +56,6 @@ def recurse(ctx): ctx.recurse(sd) def build(bld): - lnetworking.build(bld) + netlegacy.build(bld) rtems.build(bld) recurse(bld) |