[RTEMS-NET-LEGACY PATCH] waf: List all source built and installed

2023-03-26 Thread chrisj
From: Chris Johns 

- Remove scanning the file system for files to build and install.

- Install list checked against an RTEMS 5.3 networking build.

Closes #4887
---
 bsp_drivers.py  | 244 +++-
 netlegacy.py| 148 +-
 netsources.py   | 328 
 testsuites/ftp01/wscript|  18 +-
 testsuites/loopback/wscript |   9 +-
 testsuites/networking01/wscript |   9 +-
 testsuites/pppd/wscript |  13 +-
 testsuites/syscall01/wscript|   9 +-
 testsuites/telnetd01/wscript|  17 +-
 testsuites/wscript  |   6 +-
 wscript |   4 +-
 11 files changed, 615 insertions(+), 190 deletions(-)
 create mode 100644 netsources.py

diff --git a/bsp_drivers.py b/bsp_drivers.py
index 7d07d3d..e2250aa 100644
--- a/bsp_drivers.py
+++ b/bsp_drivers.py
@@ -26,51 +26,201 @@
 #  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 #  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-from rtems_waf import rtems
-import os
-import waflib.Options
-import waflib.ConfigSet
+include = {
+'arm/csb336': [
+'bsps/arm/csb336/net',
+],
+'arm/csb337': [
+'bsps/arm/csb337/net',
+],
+'arm/edb7312': [
+'bsps/arm/edb7312/net',
+],
+'arm/gumstix': [
+'bsps/arm/gumstix/net',
+],
+'arm/rtl22xx': [
+'bsps/arm/rtl22xx/net',
+],
+'bfin/bf537Stamp': [
+'bsps/bfin/bf537Stamp/net',
+],
+'i386/pc386': [
+'bsps/i386/pc386/net',
+],
+'lm32/lm32_evr': [
+'bsps/lm32/include',
+'bsps/lm32/shared/net',
+],
+'m68k/av5282': [
+'bsps/m68k/av5282/net',
+],
+'m68k/csb360': [
+'bsps/m68k/csb360/net',
+],
+'m68k/mcf5235': [
+'bsps/m68k/mcf5235/net',
+],
+'m68k/mcf5329': [
+'bsps/m68k/mcf5329/net',
+],
+'m68k/mvme167': [
+'bsps/m68k/mvme167/net',
+],
+'m68k/uC5282': [
+'bsps/m68k/uC5282/net',
+],
+'mips/csb350': [
+'bsps/mips/csb350/net',
+],
+'powerpc/beatnik': [
+'bsps/powerpc/beatnik/include',
+'bsps/powerpc/beatnik/include/bsp',
+'bsps/powerpc/beatnik/net',
+'bsps/powerpc/beatnik/net/if_em',
+'bsps/powerpc/beatnik/net/if_gfe',
+'bsps/powerpc/beatnik/net/porting',
+],
+'powerpc/mpc8260ads': [
+'bsps/powerpc/mpc8260ads/net',
+],
+'powerpc/mvme3100': [
+'bsps/powerpc/mvme3100/net',
+],
+'powerpc/mvme5500': [
+'bsps/powerpc/mvme5500/net',
+],
+'powerpc/psim': [
+'bsps/powerpc/psim/net',
+],
+'powerpc/virtex': [
+'bsps/powerpc/virtex/net',
+],
+'riscv/griscv': [
+'bsps/riscv/griscv/net',
+],
+'sparc/erc32': [
+'bsps/sparc/erc32/net',
+],
+'sparc/leon2': [
+'bsps/sparc/leon2/net',
+],
+'sparc/leon3': [
+'bsps/sparc/leon3/net',
+],
+}
 
-
-def bsp_files(bld):
-source_files = {}
-include_dirs = {}
-include_files = []
-
-special_case_dirs = {'atsamv': os.path.expanduser('bsps/arm/atsam'),
- 'lm32_evr': os.path.expanduser('bsps/lm32'),
- 'lpc24xx_ea': os.path.expanduser('bsps/arm/shared/')}
-special_case_sources = {'leon2':
-
[os.path.expanduser('bsps/shared/grlib/net/network_interface_add.c'),
- 
os.path.expanduser('bsps/shared/grlib/net/greth.c')],
-'leon3':
-
[os.path.expanduser('bsps/shared/grlib/net/network_interface_add.c'),
- 
os.path.expanduser('bsps/shared/grlib/net/greth.c')],
-'griscv':
-
[os.path.expanduser('bsps/shared/grlib/net/network_interface_add.c'),
- 
os.path.expanduser('bsps/shared/grlib/net/greth.c')]}
-
-bsp_list = bld.env.RTEMS_ARCH_BSP_LIST
-
-for bl in bsp_list:
-bsp = bl.split('-')[-1]
-arch = bl.split('-')[0]
-include_dirs[bsp] = []
-source_files[bsp] = []
-if bsp not in special_case_dirs:
-source_dir = os.walk(os.path.join('bsps', arch, bsp))
-else:
-source_dir = os.walk(special_case_dirs[bsp])
-for root, dirs, files in source_dir:
-for name in files:
-ext = os.path.splitext(name)[1]
-if ext == '.c':
-source_files[bsp].append(os.path.join(root, name))
-if ext == '.h':
-if root not in include_dirs[bsp]:
-include_dirs[bsp].append(root)
-if bsp in special_case_sources:
-source_files[bsp].extend(special_case_sources[bsp])
-include_dirs[bsp].append(os.path.join('bsps', arch, bsp, 

Re: [PATCH] tester/bsps: change stm32h7-stlink to handle SIGTRAP as a nostop

2023-03-26 Thread Chris Johns
OK to push

Thanks
Chris

On 25/3/2023 10:11 am, Karel Gardas wrote:
> The ST-Link GDB server throws spurious SIGTRAP into the GDB sometimes.
> When this happen, the gdb exits immediately as it's run in batch/script
> manner. Unfortunately this may be while testcase itself is still running
> and does not have enough time to print all the required output.
> Such testcase is then marked as failed although otherwise it may run
> well to its end.
> Adding handle of SIGTRAP as a nostop means that GDB will not exit
> after receiving SIGTRAP but rather be forced to continue as nothing
> would happen and the running testcase will have a chance to finish
> its business.
> ---
>  tester/rtems/testing/bsps/stm32h7-stlink.ini | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tester/rtems/testing/bsps/stm32h7-stlink.ini 
> b/tester/rtems/testing/bsps/stm32h7-stlink.ini
> index bf57bee..2c375f5 100644
> --- a/tester/rtems/testing/bsps/stm32h7-stlink.ini
> +++ b/tester/rtems/testing/bsps/stm32h7-stlink.ini
> @@ -40,4 +40,5 @@ gdb_script = bsp_gdb_script
>  requires   = bsp_tty_dev, bsp_gdb_script, target_pretest_command, 
> target_posttest_command
>  bsp_gdb_script = target extended-remote :61234
>   load
> + handle SIGTRAP nostop
>   cont
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


GSOC Proposal - SiFive HiFive Unleashed RISC-V port for RTEMS

2023-03-26 Thread Amna Mannan
Hello everyone,
I'm Amna Mannan, wanted to share my proposal for this year with you. I'll
be to glad to know more about this proposal. I have updated the GSOC 2023
wiki.
Here's a link to my proposal.
https://docs.google.com/document/d/1-RfydFwHBI5dvJKJu9TLpVI9wmVRcrqcTuHLJGBNTME/edit?usp=sharing

Thank you,
Amna Mannan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

[PATCH] Hello World Task

2023-03-26 Thread Aryan Karawale
---
 testsuites/samples/hello/.vscode/settings.json | 5 +
 testsuites/samples/hello/init.c| 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 testsuites/samples/hello/.vscode/settings.json

diff --git a/testsuites/samples/hello/.vscode/settings.json 
b/testsuites/samples/hello/.vscode/settings.json
new file mode 100644
index 00..687fc30567
--- /dev/null
+++ b/testsuites/samples/hello/.vscode/settings.json
@@ -0,0 +1,5 @@
+{
+"files.associations": {
+"iostream": "c"
+}
+}
\ No newline at end of file
diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c
index 83f6342ab3..955677015e 100644
--- a/testsuites/samples/hello/init.c
+++ b/testsuites/samples/hello/init.c
@@ -41,7 +41,7 @@ static rtems_task Init(
 {
   rtems_print_printer_fprintf_putc(_test_printer);
   TEST_BEGIN();
-  printf( "Hello World\n" );
+  printf( "Hello World from aryan \n" );
   TEST_END();
   rtems_test_exit( 0 );
 }
-- 
2.25.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel