<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 5, 2021, 1:07 PM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Mar 5, 2021 at 11:42 AM Vijay Kumar Banerjee <<a href="mailto:vijay@rtems.org" target="_blank" rel="noreferrer">vijay@rtems.org</a>> wrote:<br>
><br>
> ---<br>
>  netlegacy.py                 | 27 +++++++++++++++++++++------<br>
>  testsuites/telnetd01/wscript |  2 +-<br>
>  2 files changed, 22 insertions(+), 7 deletions(-)<br>
><br>
> diff --git a/netlegacy.py b/netlegacy.py<br>
> index 037e2ee..0889548 100644<br>
> --- a/netlegacy.py<br>
> +++ b/netlegacy.py<br>
> @@ -31,7 +31,8 @@ import os<br>
><br>
>  source_files = []<br>
>  include_files = {}<br>
> -exclude_dirs = ['pppd', 'nfsclient', 'testsuites', 'librpc/include', 'bsps']<br>
> +exclude_dirs = ['pppd', 'nfsclient', 'testsuites', 'librpc/include', 'bsps',<br>
> +                'telnetd']<br>
>  exclude_headers = ['rtems-bsd-user-space.h', 'rtems-bsd-kernel-space.h']<br>
><br>
>  for root, dirs, files in os.walk("."):<br>
> @@ -51,6 +52,8 @@ def build(bld):<br>
>      bsp = bld.env.RTEMS_ARCH_BSP.split('-')[-1]<br>
>      pppd_source = [os.path.join('./pppd', s)<br>
>                     for s in os.listdir('./pppd') if s[-2:] == '.c']<br>
> +    telnetd_source = [os.path.join('./telnetd', s)<br>
> +                      for s in os.listdir('telnetd') if s[-2:] == '.c']<br>
><br>
>      bsp_dirs, bsp_sources = bsp_drivers.bsp_files(bld)<br>
><br>
> @@ -98,12 +101,24 @@ def build(bld):<br>
>                use='networking',<br>
>                source=pppd_source)<br>
><br>
> +    bld.stlib(target='telnetd',<br>
> +              features='c',<br>
> +              includes=ip,<br>
> +              use='networking',<br>
> +              source=telnetd_source)<br>
> +<br>
>      bld.install_files(os.path.join('${PREFIX}', arch_lib_path),<br>
> -                      ["libnetworking.a"])<br>
> -    bld.install_files(os.path.join('${PREFIX}', arch_lib_path),<br>
> +                      ["libnetworking.a", 'libpppd.a', 'libtelnetd.a'])<br>
> +    bld.install_files(os.path.join('${PREFIX}', arch_lib_path,<br>
> +                                   'include', 'libchip'),<br>
>                        [os.path.join('./bsps/include/libchip/', f)<br>
>                        for f in os.listdir('./bsps/include/libchip/')])<br>
>      for i in include_files:<br>
> -        bld.install_files(os.path.join('${PREFIX}',<br>
> -                          arch_lib_path, i),<br>
> -                          include_files[i])<br>
> +        if 'include' in i.split('/'):<br>
> +            bld.install_files(os.path.join('${PREFIX}',<br>
> +                                           arch_lib_path, i),<br>
> +                              include_files[i])<br>
> +        else:<br>
> +            bld.install_files(os.path.join('${PREFIX}',<br>
> +                                           arch_lib_path, 'include', i),<br>
> +                              include_files[i])<br>
> diff --git a/testsuites/telnetd01/wscript b/testsuites/telnetd01/wscript<br>
> index 8a48b90..fd573be 100644<br>
> --- a/testsuites/telnetd01/wscript<br>
> +++ b/testsuites/telnetd01/wscript<br>
> @@ -42,5 +42,5 @@ def build(bld):<br>
>                  features='c cprogram',<br>
>                  cfags=['-O2', '-g'],<br>
unrelated: should this be cflags?<br>
<br>
go ahead and push the fix, you can be a little bit aggressive for a<br>
few days to get this repo "stable"<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Agreed.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
>                  includes='. .. ../include ../../ ../../include',<br>
> -                use=['networking'],<br>
> +                use=['telnetd', 'networking'],<br>
>                  source='init.c')<br>
> --<br>
> 2.26.2<br>
><br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div></div>