Re: [PATCH] GDB: fix python config command line arguments based on python version

2022-04-21 Thread Karel Gardas

On 4/21/22 02:12, Chris Johns wrote:

On 21/4/2022 4:38 am, Karel Gardas wrote:


Chris, Frank,

I don't feel particularly comfortable with this patch. It works here on Ubuntu
20.04 with python 3.3 and Ubuntu 22.04 with Python 3.10, but I have to admit
semantics of this cfg language is beyond my liking and a lot is in complete
darkness here. E.g. how &&, < operator are working here. Delete both int
conversions and it'll not work at all. Keep one and it'll work well.
The problem is probably lack of time to go thorough all the docs on
docs.rtems.org to find relevant bits while working on the patch.

Anyway, if you have time, please review and test on your platforms.


I think you are right to be concerned. I cannot find in the parser any support
for `int()` which makes me wonder if `int(3)` is being compared but I am not 
sure.


Hmm. And I've thought cfg format is just DSL interpreted in python hence 
translated internally to python hence my int() usage.



Leave this with me and I will take a closer look.


Absolutely!


I think we will need to add a
numerical compare. Hmmm.


Another solution may be to enhance version string to print every number 
with two digits and with leading zero if needed and concatenate string 
together. This may probably work too even with lexi comparison.

E.g.

2.7.1  -> "020701"
2.7.17 -> "020717"
3.9.2  -> "030902"
3.10.3 -> "031003"

Hard to judge which approach is cleanest one.

Karel

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


Re: [PATCH] GDB: fix python config command line arguments based on python version

2022-04-21 Thread Frank Kühndel
Hi Karel,

On 4/20/22 20:38, Karel Gardas wrote:
> Chris, Frank,
> 
> I don't feel particularly comfortable with this patch. It works here on
> Ubuntu 20.04 with python 3.3 and Ubuntu 22.04 with Python 3.10, but I
> have to admit semantics of this cfg language is beyond my liking and a
> lot is in complete darkness here. E.g. how &&, < operator are working
> here. Delete both int conversions and it'll not work at all. Keep one
> and it'll work well.
> The problem is probably lack of time to go thorough all the docs on
> docs.rtems.org to find relevant bits while working on the patch.
> 
> Anyway, if you have time, please review and test on your platforms.

I am rather sorry to write this but your patch does not work for me. The
before failing build on "Fedora Linux 35 (Container Image)" with Python
3.10.4 works fine with your patch. Yet, the "openSUSE Leap 15.3"
container with Python 3.6.15 (which was building OK without this patch)
fails now:

11:32:00  config: tools/rtems-gdb-11.2.cfg
11:32:00  error: shell macro failed:
/home/minna/src/rtems-source-builder/source-builder/sb/rtems-build-dep
-c gcc  -l : 2: error: no library (-l) provided
11:32:00  Build FAILED
11:32:00  Build Set: Time 0:00:37.716473

Some notes: The "RTEMS User Manual" Section "14.5.8.21. %if"

  https://docs.rtems.org/branches/master/user/rsb/configuration.html#if

states:

  "< The left hand side is numerically less than the
 right hand side."

  "<= The left hand side is numerically less than or
  equal to the right hand side."

According to this, it is never a lexicographical comparison. 3.10 is 3.1
as floating number and thus 3.1 < 3.8 holds true. What I do not know is
whether the tool uses integers or real numbers nor whether the
documentation is up to date. The `&&` and the `int()` are _not_
documented there. The `&&` is actually used in .cfg-files but
surprisingly seldom. Moreover, this command may help debugging:

   `%{echo message}`  Print the following string as a message.

Greetings,
fk

-- 
embedded brains GmbH
Herr Frank KÜHNDEL
Dornierstr. 4
82178 Puchheim
Germany
email: frank.kuehn...@embedded-brains.de
phone: +49-89-18 94 741 - 23
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

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

[PATCH 02/15] tmtests: Manually adding file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Based on git
history, added appropriate copyrights and licenses.
---
 testsuites/tmtests/tm02/task1.c | 35 +++
 testsuites/tmtests/tm03/task1.c | 35 +++
 testsuites/tmtests/tm31/task1.c | 35 +++
 testsuites/tmtests/tm32/task1.c | 35 +++
 testsuites/tmtests/tm33/task1.c | 35 +++
 testsuites/tmtests/tm34/task1.c | 35 +++
 testsuites/tmtests/tm35/task1.c | 35 +++
 testsuites/tmtests/tm36/task1.c | 35 +++
 8 files changed, 280 insertions(+)

diff --git a/testsuites/tmtests/tm02/task1.c b/testsuites/tmtests/tm02/task1.c
index c770390..304c23b 100644
--- a/testsuites/tmtests/tm02/task1.c
+++ b/testsuites/tmtests/tm02/task1.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup tmtests
+ *
+ *  @brief This is task1 for the tm02 test.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-1999 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define TM02
 #include "tm02impl.h"
diff --git a/testsuites/tmtests/tm03/task1.c b/testsuites/tmtests/tm03/task1.c
index 88c13f3..b79f685 100644
--- a/testsuites/tmtests/tm03/task1.c
+++ b/testsuites/tmtests/tm03/task1.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup tmtests
+ *
+ *  @brief This is task1 for the tm03 test.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-1999 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define TM03
 #include "tm03impl.h"
diff --git a/testsuites/tmtests/tm31/task1.c b/testsuites/tmtests/tm31/task1.c
index 158c2d3..ac3aab3 100644
--- a/testsuites/tmtests/tm31/task1.c
+++ b/testsuites/tmtests/tm31/task1.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup tmtests
+ *
+ *  @brief This is task1 for the tm31 test.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2014 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyr

[PATCH 00/15] Add copyrights and licenses to files missing them

2022-04-21 Thread Ryan Long
Hi,

This is the first in a set of patches that will be adding copyrights and
licenses to the files that are missing them. I went through the git
history to determine who the files belonged to to give them credit.

Thanks,
Ryan

Ryan Long (15):
  mptests: Manually adding file headers and licenses
  tmtests: Manually adding file headers and licenses
  sptests: Manually adding file headers and licenses
  libtests: Adding file headers and licenses
  psxtests: Adding file headers and licenses
  samples: Manually adding file headers and licenses
  support: Manually adding file headers and licenses
  libdl: Manually adding file headers and licenses
  libtests/dl06: Manually adding file headers and licenses.
  sptests/sp27*: Manually adding file headers and licenses
  ada/samples: Manually adding file headers and licenses
  psxtmtests/psxtmcond*: Add file headers and licenses
  sp44/init.c: Add file header and license
  sp47/init.c: Add file header and license
  sp65/init.c: Add file header and license

 cpukit/libdl/rtl-mdreloc-bfin.c| 35 ++
 cpukit/libdl/rtl-mdreloc-lm32.c| 35 ++
 cpukit/libdl/rtl-mdreloc-mips.c| 35 ++
 cpukit/libdl/rtl-mdreloc-moxie.c   | 35 ++
 cpukit/libdl/rtl-mdreloc-powerpc.c | 35 ++
 cpukit/libdl/rtl-mdreloc-v850.c| 35 ++
 testsuites/ada/samples/base_mp/node1/init.c| 33 
 testsuites/ada/samples/base_mp/node2/init.c| 33 
 testsuites/libtests/dl06/init.c| 35 ++
 testsuites/libtests/dl06/pre-init.c| 35 ++
 testsuites/libtests/mouse01/serial_mouse_config.c  | 35 ++
 .../libtests/termios04/termios_testdriver_intr.c   | 35 ++
 .../libtests/termios05/termios_testdriver_task.c   | 35 ++
 testsuites/libtests/termios10/init.c   | 35 ++
 testsuites/libtests/termios11/init.c   | 35 ++
 testsuites/mptests/mp01/init1.c| 35 ++
 testsuites/mptests/mp01/init2.c| 35 ++
 testsuites/mptests/mp03/init1.c| 35 ++
 testsuites/mptests/mp03/init2.c| 35 ++
 testsuites/mptests/mp04/init1.c| 35 ++
 testsuites/mptests/mp04/init2.c| 35 ++
 testsuites/mptests/mp05/init1.c| 35 ++
 testsuites/mptests/mp05/init2.c| 35 ++
 testsuites/mptests/mp06/init1.c| 35 ++
 testsuites/mptests/mp06/init2.c| 35 ++
 testsuites/mptests/mp07/init1.c| 35 ++
 testsuites/mptests/mp07/init2.c| 35 ++
 testsuites/mptests/mp08/init1.c| 35 ++
 testsuites/mptests/mp08/init2.c| 35 ++
 testsuites/mptests/mp09/init1.c| 35 ++
 testsuites/mptests/mp09/init2.c| 35 ++
 testsuites/mptests/mp10/init1.c| 35 ++
 testsuites/mptests/mp10/init2.c| 35 ++
 testsuites/mptests/mp11/init1.c| 35 ++
 testsuites/mptests/mp11/init2.c| 35 ++
 testsuites/mptests/mp12/init1.c| 35 ++
 testsuites/mptests/mp12/init2.c| 35 ++
 testsuites/mptests/mp13/init1.c| 35 ++
 testsuites/mptests/mp13/init2.c| 35 ++
 testsuites/mptests/mp14/init1.c| 35 ++
 testsuites/mptests/mp14/init2.c| 35 ++
 testsuites/psxtests/psxchroot01/main.c | 35 ++
 testsuites/psxtests/psxfatal01/init.c  | 35 ++
 testsuites/psxtests/psxfatal02/init.c  | 35 ++
 testsuites/psxtests/psxmount/main.c| 35 ++
 testsuites/psxtests/psxreaddir/main.c  | 35 ++
 testsuites/psxtests/psxsignal03/init.c | 35 ++
 testsuites/psxtests/psxsignal04/init.c | 35 ++
 testsuites/psxtmtests/psxtmcond08/init.c   | 15 ++
 testsuites/psxtmtests/psxtmcond09/init.c   | 15 ++
 testsuites/psx

[PATCH 03/15] sptests: Manually adding file headers and licenses

2022-04-21 Thread Ryan Long
Theses files had no file header, copyright, or license. Based on git
history, added appropriate copyrights and licenses.
---
 testsuites/sptests/sp52/init.c | 35 ++
 testsuites/sptests/sp53/init.c | 35 ++
 testsuites/sptests/sp66/init.c | 35 ++
 testsuites/sptests/spcpuset01/init.c   | 35 ++
 testsuites/sptests/spcpuset01/test.c   | 35 ++
 testsuites/sptests/spfatal01/init.c| 35 ++
 testsuites/sptests/spfatal04/init.c| 35 ++
 testsuites/sptests/spintrcritical01/init.c | 35 ++
 testsuites/sptests/spintrcritical02/init.c | 35 ++
 testsuites/sptests/spintrcritical03/init.c | 35 ++
 testsuites/sptests/spintrcritical04/init.c | 35 ++
 testsuites/sptests/spintrcritical05/init.c | 35 ++
 testsuites/sptests/spintrcritical11/init.c | 35 ++
 testsuites/sptests/spintrcritical12/init.c | 35 ++
 testsuites/sptests/spintrcritical13/init.c | 35 ++
 testsuites/sptests/spintrcritical14/init.c | 35 ++
 16 files changed, 560 insertions(+)

diff --git a/testsuites/sptests/sp52/init.c b/testsuites/sptests/sp52/init.c
index 6cf79eb..7f41083 100644
--- a/testsuites/sptests/sp52/init.c
+++ b/testsuites/sptests/sp52/init.c
@@ -1 +1,36 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup sptests
+ *
+ *  @brief This is the init for sp52.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2009 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #include "sp52impl.h"
diff --git a/testsuites/sptests/sp53/init.c b/testsuites/sptests/sp53/init.c
index 3ff09bc..dd3f07d 100644
--- a/testsuites/sptests/sp53/init.c
+++ b/testsuites/sptests/sp53/init.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup sptests
+ *
+ *  @brief This is the init for sp53.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2009 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define USE_TIMER_SERVER
 #include

[PATCH 04/15] libtests: Adding file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Based on git
history, added appropriate copyrights and licenses.
---
 testsuites/libtests/mouse01/serial_mouse_config.c  | 35 ++
 .../libtests/termios04/termios_testdriver_intr.c   | 35 ++
 .../libtests/termios05/termios_testdriver_task.c   | 35 ++
 testsuites/libtests/termios10/init.c   | 35 ++
 testsuites/libtests/termios11/init.c   | 35 ++
 5 files changed, 175 insertions(+)

diff --git a/testsuites/libtests/mouse01/serial_mouse_config.c 
b/testsuites/libtests/mouse01/serial_mouse_config.c
index 798cbf3..b3782a7 100644
--- a/testsuites/libtests/mouse01/serial_mouse_config.c
+++ b/testsuites/libtests/mouse01/serial_mouse_config.c
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup libtests
+ *
+ *  @brief This is serial_mouse_config for mouse01.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2011 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 /*
  *
  * MODULE DESCRIPTION:
diff --git a/testsuites/libtests/termios04/termios_testdriver_intr.c 
b/testsuites/libtests/termios04/termios_testdriver_intr.c
index 5946c29..f13c7c4 100644
--- a/testsuites/libtests/termios04/termios_testdriver_intr.c
+++ b/testsuites/libtests/termios04/termios_testdriver_intr.c
@@ -1 +1,36 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup libtests
+ *
+ *  @brief This is termios_testdriver_intr for termios04.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2012 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #include "termios_testdriver_impl.h"
diff --git a/testsuites/libtests/termios05/termios_testdriver_task.c 
b/testsuites/libtests/termios05/termios_testdriver_task.c
index e1b3181..5fa7005 100644
--- a/testsuites/libtests/termios05/termios_testdriver_task.c
+++ b/testsuites/libtests/termios05/termios_testdriver_task.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup libtests
+ *
+ *  @brief This is termios_testdriver_task for termios05.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2010 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided 

[PATCH 01/15] mptests: Manually adding file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Based on git
history, added appropriate copyrights and licenses.
---
 testsuites/mptests/mp01/init1.c | 35 +++
 testsuites/mptests/mp01/init2.c | 35 +++
 testsuites/mptests/mp03/init1.c | 35 +++
 testsuites/mptests/mp03/init2.c | 35 +++
 testsuites/mptests/mp04/init1.c | 35 +++
 testsuites/mptests/mp04/init2.c | 35 +++
 testsuites/mptests/mp05/init1.c | 35 +++
 testsuites/mptests/mp05/init2.c | 35 +++
 testsuites/mptests/mp06/init1.c | 35 +++
 testsuites/mptests/mp06/init2.c | 35 +++
 testsuites/mptests/mp07/init1.c | 35 +++
 testsuites/mptests/mp07/init2.c | 35 +++
 testsuites/mptests/mp08/init1.c | 35 +++
 testsuites/mptests/mp08/init2.c | 35 +++
 testsuites/mptests/mp09/init1.c | 35 +++
 testsuites/mptests/mp09/init2.c | 35 +++
 testsuites/mptests/mp10/init1.c | 35 +++
 testsuites/mptests/mp10/init2.c | 35 +++
 testsuites/mptests/mp11/init1.c | 35 +++
 testsuites/mptests/mp11/init2.c | 35 +++
 testsuites/mptests/mp12/init1.c | 35 +++
 testsuites/mptests/mp12/init2.c | 35 +++
 testsuites/mptests/mp13/init1.c | 35 +++
 testsuites/mptests/mp13/init2.c | 35 +++
 testsuites/mptests/mp14/init1.c | 35 +++
 testsuites/mptests/mp14/init2.c | 35 +++
 26 files changed, 910 insertions(+)

diff --git a/testsuites/mptests/mp01/init1.c b/testsuites/mptests/mp01/init1.c
index cfe033d..7231d4f 100644
--- a/testsuites/mptests/mp01/init1.c
+++ b/testsuites/mptests/mp01/init1.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup mptests
+ *
+ *  @brief This is init1 for mp01.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-1999 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define CONFIGURE_MP_NODE_NUMBER 1
 #include "initimpl.h"
diff --git a/testsuites/mptests/mp01/init2.c b/testsuites/mptests/mp01/init2.c
index 40c2c81..b50f506 100644
--- a/testsuites/mptests/mp01/init2.c
+++ b/testsuites/mptests/mp01/init2.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup mptests
+ *
+ *  @brief This is init2 for mp01.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-1999 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE

[PATCH 07/15] support: Manually adding file headers and licenses

2022-04-21 Thread Ryan Long
This file had no file header, copyright, or license. Based on git
history, added appropriate copyright and license.
---
 testsuites/support/include/buffer_test_io.h | 35 +
 1 file changed, 35 insertions(+)

diff --git a/testsuites/support/include/buffer_test_io.h 
b/testsuites/support/include/buffer_test_io.h
index f0eae50..3ff5ca1 100644
--- a/testsuites/support/include/buffer_test_io.h
+++ b/testsuites/support/include/buffer_test_io.h
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup support
+ *
+ *  @brief This is the buffer_test_io header file.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2011 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 /*
  *  Support for running the test output through a buffer
  */
-- 
1.8.3.1

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


[PATCH 05/15] psxtests: Adding file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Based on git
history, added appropriate copyrights and licenses.
---
 testsuites/psxtests/psxchroot01/main.c | 35 ++
 testsuites/psxtests/psxfatal01/init.c  | 35 ++
 testsuites/psxtests/psxfatal02/init.c  | 35 ++
 testsuites/psxtests/psxmount/main.c| 35 ++
 testsuites/psxtests/psxreaddir/main.c  | 35 ++
 testsuites/psxtests/psxsignal03/init.c | 35 ++
 testsuites/psxtests/psxsignal04/init.c | 35 ++
 7 files changed, 245 insertions(+)

diff --git a/testsuites/psxtests/psxchroot01/main.c 
b/testsuites/psxtests/psxchroot01/main.c
index 2c1c489..2e879a5 100644
--- a/testsuites/psxtests/psxchroot01/main.c
+++ b/testsuites/psxtests/psxchroot01/main.c
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup psxtests
+ *
+ *  @brief This is main for psxchroot01.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2012 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 /*
  *  Simple test program -- simplified version of sample test hello.
  */
diff --git a/testsuites/psxtests/psxfatal01/init.c 
b/testsuites/psxtests/psxfatal01/init.c
index ffc5b35..53f3289 100644
--- a/testsuites/psxtests/psxfatal01/init.c
+++ b/testsuites/psxtests/psxfatal01/init.c
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup psxtests
+ *
+ *  @brief This is init for psxfatal01.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2012 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
diff --git a/testsuites/psxtests/psxfatal02/init.c 
b/testsuites/psxtests/psxfatal02/init.c
index eaf9330..59f9ced 100644
--- a/testsuites/psxtests/psxfatal02/init.c
+++ b/testsuites/psxtests/psxfatal02/init.c
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup psxtests
+ *
+ *  @brief This is init for psxfatal02.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2012 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the follo

[PATCH 12/15] psxtmtests/psxtmcond*: Add file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Based on git
history, added appropriate copyright and license.
---
 testsuites/psxtmtests/psxtmcond08/init.c | 15 +++
 testsuites/psxtmtests/psxtmcond09/init.c | 15 +++
 testsuites/psxtmtests/psxtmcond10/init.c | 15 +++
 3 files changed, 45 insertions(+)

diff --git a/testsuites/psxtmtests/psxtmcond08/init.c 
b/testsuites/psxtmtests/psxtmcond08/init.c
index c4fa914..e2c4960 100644
--- a/testsuites/psxtmtests/psxtmcond08/init.c
+++ b/testsuites/psxtmtests/psxtmcond08/init.c
@@ -1,2 +1,17 @@
+/*
+ *  COPYRIGHT (c) 2013 Christopher Kerl 
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ *
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
SOFTWARE.
+ */
+
 #define USE_WAIT
 #include "psxtmcond08impl.h"
diff --git a/testsuites/psxtmtests/psxtmcond09/init.c 
b/testsuites/psxtmtests/psxtmcond09/init.c
index 5a40a7a..af17c85 100644
--- a/testsuites/psxtmtests/psxtmcond09/init.c
+++ b/testsuites/psxtmtests/psxtmcond09/init.c
@@ -1,2 +1,17 @@
+/*
+ *  COPYRIGHT (c) 2013 Christopher Kerl 
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ *
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
SOFTWARE.
+ */
+
 #define USE_TIMEDWAIT_WITH_VALUE
 #include "../psxtmcond08/psxtmcond08impl.h"
diff --git a/testsuites/psxtmtests/psxtmcond10/init.c 
b/testsuites/psxtmtests/psxtmcond10/init.c
index ba08dc1..a14cb1c 100644
--- a/testsuites/psxtmtests/psxtmcond10/init.c
+++ b/testsuites/psxtmtests/psxtmcond10/init.c
@@ -1,2 +1,17 @@
+/*
+ *  COPYRIGHT (c) 2013 Christopher Kerl 
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ *
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
SOFTWARE.
+ */
+
 #define USE_TIMEDWAIT_WAIT_VALUE_IN_PAST
 #include "../psxtmcond08/psxtmcond08impl.h"
-- 
1.8.3.1

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


[PATCH 06/15] samples: Manually adding file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Based on git
history, added appropriate copyrights and licenses.
---
 testsuites/samples/base_mp/init1.c | 35 +++
 testsuites/samples/base_mp/init2.c | 35 +++
 testsuites/samples/nsecs/system.h  | 35 +++
 3 files changed, 105 insertions(+)

diff --git a/testsuites/samples/base_mp/init1.c 
b/testsuites/samples/base_mp/init1.c
index cfe033d..1a7ecff 100644
--- a/testsuites/samples/base_mp/init1.c
+++ b/testsuites/samples/base_mp/init1.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup samples
+ *
+ *  @brief This is init1 for base_mp.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-1999 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define CONFIGURE_MP_NODE_NUMBER 1
 #include "initimpl.h"
diff --git a/testsuites/samples/base_mp/init2.c 
b/testsuites/samples/base_mp/init2.c
index 40c2c81..318250d 100644
--- a/testsuites/samples/base_mp/init2.c
+++ b/testsuites/samples/base_mp/init2.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup samples
+ *
+ *  @brief This is init2 for base_mp.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-1999 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define CONFIGURE_MP_NODE_NUMBER 2
 #include "initimpl.h"
diff --git a/testsuites/samples/nsecs/system.h 
b/testsuites/samples/nsecs/system.h
index 31c17a4..70579e2 100644
--- a/testsuites/samples/nsecs/system.h
+++ b/testsuites/samples/nsecs/system.h
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup samples
+ *
+ *  @brief This is the system header file for nsecs.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-2007 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the d

[PATCH 08/15] libdl: Manually adding file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Chris identified
that these were made by him.

Updates #4521
---
 cpukit/libdl/rtl-mdreloc-bfin.c| 35 +++
 cpukit/libdl/rtl-mdreloc-lm32.c| 35 +++
 cpukit/libdl/rtl-mdreloc-mips.c| 35 +++
 cpukit/libdl/rtl-mdreloc-moxie.c   | 35 +++
 cpukit/libdl/rtl-mdreloc-powerpc.c | 35 +++
 cpukit/libdl/rtl-mdreloc-v850.c| 35 +++
 6 files changed, 210 insertions(+)

diff --git a/cpukit/libdl/rtl-mdreloc-bfin.c b/cpukit/libdl/rtl-mdreloc-bfin.c
index 27f865e..2c9cc40 100644
--- a/cpukit/libdl/rtl-mdreloc-bfin.c
+++ b/cpukit/libdl/rtl-mdreloc-bfin.c
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup
+ *
+ *  @brief
+ */
+
+/*
+ * COPYRIGHT (C) 2014 Chris Johns .
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #include 
 
 #include 
diff --git a/cpukit/libdl/rtl-mdreloc-lm32.c b/cpukit/libdl/rtl-mdreloc-lm32.c
index 4d47592..809ca87 100644
--- a/cpukit/libdl/rtl-mdreloc-lm32.c
+++ b/cpukit/libdl/rtl-mdreloc-lm32.c
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup
+ *
+ *  @brief
+ */
+
+/*
+ * COPYRIGHT (C) 2014 Chris Johns .
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #include 
 
 #include 
diff --git a/cpukit/libdl/rtl-mdreloc-mips.c b/cpukit/libdl/rtl-mdreloc-mips.c
index d96f150..ac9d87a 100644
--- a/cpukit/libdl/rtl-mdreloc-mips.c
+++ b/cpukit/libdl/rtl-mdreloc-mips.c
@@ -1,3 +1,38 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup
+ *
+ *  @brief
+ */
+
+/*
+ * COPYRIGHT (C) 2014 Chris Johns .
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS O

[PATCH 13/15] sp44/init.c: Add file header and license

2022-04-21 Thread Ryan Long
This file had no header, copyright, or license. Based on git history,
added appropriate copyright and license.
---
 testsuites/sptests/sp44/init.c | 15 +++
 1 file changed, 15 insertions(+)

diff --git a/testsuites/sptests/sp44/init.c b/testsuites/sptests/sp44/init.c
index 7354618..c21a27b 100644
--- a/testsuites/sptests/sp44/init.c
+++ b/testsuites/sptests/sp44/init.c
@@ -1,4 +1,19 @@
 /*
+ *  COPYRIGHT (c) 2008 Xudong Guan 
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ *
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
SOFTWARE.
+ */
+
+/*
  *  Original version submitted as part of PR1212
  *
  *  This example shows a possible blocking of timeslicing if task mode is
-- 
1.8.3.1

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


[PATCH 14/15] sp47/init.c: Add file header and license

2022-04-21 Thread Ryan Long
This file had no header, copyright, or license. Based on git history,
added appropriate copyright and license.
---
 testsuites/sptests/sp47/init.c | 15 +++
 1 file changed, 15 insertions(+)

diff --git a/testsuites/sptests/sp47/init.c b/testsuites/sptests/sp47/init.c
index c050347..0c7ec0b 100644
--- a/testsuites/sptests/sp47/init.c
+++ b/testsuites/sptests/sp47/init.c
@@ -1,4 +1,19 @@
 /*
+ *  COPYRIGHT (c) 2009 Nickolay Kolchin 
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ *
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
SOFTWARE.
+ */
+
+/*
  *  Submitted as part of PR1357
  */
 
-- 
1.8.3.1

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


[PATCH 09/15] libtests/dl06: Manually adding file headers and licenses.

2022-04-21 Thread Ryan Long
These files had no header, copyright, or license. Based on git history,
added appropriate copyright and license.
---
 testsuites/libtests/dl06/init.c | 35 +++
 testsuites/libtests/dl06/pre-init.c | 35 +++
 2 files changed, 70 insertions(+)

diff --git a/testsuites/libtests/dl06/init.c b/testsuites/libtests/dl06/init.c
index 413ebf0..f472724 100644
--- a/testsuites/libtests/dl06/init.c
+++ b/testsuites/libtests/dl06/init.c
@@ -1 +1,36 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup libtests
+ *
+ *  @brief This is init for dl06.
+ */
+
+/*
+ * COPYRIGHT (C) 2018 Chris Johns .
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #include "initimpl.h"
diff --git a/testsuites/libtests/dl06/pre-init.c 
b/testsuites/libtests/dl06/pre-init.c
index 6dc232a..c6d2544 100644
--- a/testsuites/libtests/dl06/pre-init.c
+++ b/testsuites/libtests/dl06/pre-init.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup libtests
+ *
+ *  @brief This is pre-init for dl06.
+ */
+
+/*
+ * COPYRIGHT (C) 2018 Chris Johns .
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define DL06_PRE 1
 #include "initimpl.h"
-- 
1.8.3.1

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


[PATCH 15/15] sp65/init.c: Add file header and license

2022-04-21 Thread Ryan Long
This file had no file header, copyright, or license. Based on git
history, added appropriate copyright and license.
---
 testsuites/sptests/sp65/init.c | 15 +++
 1 file changed, 15 insertions(+)

diff --git a/testsuites/sptests/sp65/init.c b/testsuites/sptests/sp65/init.c
index 8360add..b8028e0 100644
--- a/testsuites/sptests/sp65/init.c
+++ b/testsuites/sptests/sp65/init.c
@@ -1 +1,16 @@
+/*
+ *  COPYRIGHT (c) 2009 Santosh G Vattam 
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ *
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
SOFTWARE.
+ */
+
 #include "sp65impl.h"
-- 
1.8.3.1

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


[PATCH 10/15] sptests/sp27*: Manually adding file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Based on git
history, added appropriate copyright and license.
---
 testsuites/sptests/sp27/init.c  | 35 +++
 testsuites/sptests/sp27a/init.c | 35 +++
 2 files changed, 70 insertions(+)

diff --git a/testsuites/sptests/sp27/init.c b/testsuites/sptests/sp27/init.c
index c1e9ba5..1b7c95e 100644
--- a/testsuites/sptests/sp27/init.c
+++ b/testsuites/sptests/sp27/init.c
@@ -1 +1,36 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup sptests
+ *
+ *  @brief This is init for sp27.
+ */
+
+/*
+ * COPYRIGHT (C) 1999 Eric Norum .
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #include "sp27impl.h"
diff --git a/testsuites/sptests/sp27a/init.c b/testsuites/sptests/sp27a/init.c
index 23a5033..dd472850 100644
--- a/testsuites/sptests/sp27a/init.c
+++ b/testsuites/sptests/sp27a/init.c
@@ -1,2 +1,37 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @ingroup sptests
+ *
+ *  @brief This is init for sp27a.
+ */
+
+/*
+ * COPYRIGHT (C) 1999 Eric Norum .
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define USE_COUNTING_SEMAPHORE
 #include "../sp27/sp27impl.h"
-- 
1.8.3.1

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


[PATCH 11/15] ada/samples: Manually adding file headers and licenses

2022-04-21 Thread Ryan Long
These files had no file header, copyright, or license. Based on git
history, added appropriate copyright and license.
---
 testsuites/ada/samples/base_mp/node1/init.c | 33 +
 testsuites/ada/samples/base_mp/node2/init.c | 33 +
 2 files changed, 66 insertions(+)

diff --git a/testsuites/ada/samples/base_mp/node1/init.c 
b/testsuites/ada/samples/base_mp/node1/init.c
index 073c033..578abff 100644
--- a/testsuites/ada/samples/base_mp/node1/init.c
+++ b/testsuites/ada/samples/base_mp/node1/init.c
@@ -1,2 +1,35 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @brief This is init for node1.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-1999 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define CONFIGURE_MP_NODE_NUMBER 1
 #include "../../../support/init.c"
diff --git a/testsuites/ada/samples/base_mp/node2/init.c 
b/testsuites/ada/samples/base_mp/node2/init.c
index ea6db06..3cad39c 100644
--- a/testsuites/ada/samples/base_mp/node2/init.c
+++ b/testsuites/ada/samples/base_mp/node2/init.c
@@ -1,2 +1,35 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ *  @file
+ *
+ *  @brief This is init for node2.
+ */
+
+/*
+ * COPYRIGHT (C) 1989-1999 On-Line Applications Research Corporation (OAR).
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #define CONFIGURE_MP_NODE_NUMBER 2
 #include "../../../support/init.c"
-- 
1.8.3.1

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


Re: [PATCH] GDB: fix python config command line arguments based on python version

2022-04-21 Thread Chris Johns
On 21/4/2022 5:45 pm, Karel Gardas wrote:
> On 4/21/22 02:12, Chris Johns wrote:
>> On 21/4/2022 4:38 am, Karel Gardas wrote:
>>>
>>> Chris, Frank,
>>>
>>> I don't feel particularly comfortable with this patch. It works here on 
>>> Ubuntu
>>> 20.04 with python 3.3 and Ubuntu 22.04 with Python 3.10, but I have to admit
>>> semantics of this cfg language is beyond my liking and a lot is in complete
>>> darkness here. E.g. how &&, < operator are working here. Delete both int
>>> conversions and it'll not work at all. Keep one and it'll work well.
>>> The problem is probably lack of time to go thorough all the docs on
>>> docs.rtems.org to find relevant bits while working on the patch.
>>>
>>> Anyway, if you have time, please review and test on your platforms.
>>
>> I think you are right to be concerned. I cannot find in the parser any 
>> support
>> for `int()` which makes me wonder if `int(3)` is being compared but I am not
>> sure.
> 
> Hmm. And I've thought cfg format is just DSL interpreted in python hence
> translated internally to python hence my int() usage.
> 
>> Leave this with me and I will take a closer look.
> 
> Absolutely!
> 
>> I think we will need to add a
>> numerical compare. Hmmm.
> 
> Another solution may be to enhance version string to print every number with 
> two
> digits and with leading zero if needed and concatenate string together. This 
> may
> probably work too even with lexi comparison.
> E.g.
> 
> 2.7.1  -> "020701"
> 2.7.17 -> "020717"
> 3.9.2  -> "030902"
> 3.10.3 -> "031003"
> 
> Hard to judge which approach is cleanest one.

This breaks when we exceed 99 etc. Maybe that will happen, maybe it will not.

I wonder if hacking the parser to handle this provides a more long term solution
beyond this use case.

The problem becomes adding support to the language. I wonder if checking if both
the left and right hand sides in a compare are numeric, ie 3 or 3.0, and if they
are make the comparison numeric? To force a lexicographical comparison simply
have `%if x%{yyy} < 3.8`?

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

Re: [PATCH 07/15] support: Manually adding file headers and licenses

2022-04-21 Thread Chris Johns
Looking at the git history maybe this is both OAR and me?

The rest look fine to me

... and the empty @brief additions to the libdl files has been noted :)

Chris

On 22/4/2022 12:06 am, Ryan Long wrote:
> This file had no file header, copyright, or license. Based on git
> history, added appropriate copyright and license.
> ---
>  testsuites/support/include/buffer_test_io.h | 35 
> +
>  1 file changed, 35 insertions(+)
> 
> diff --git a/testsuites/support/include/buffer_test_io.h 
> b/testsuites/support/include/buffer_test_io.h
> index f0eae50..3ff5ca1 100644
> --- a/testsuites/support/include/buffer_test_io.h
> +++ b/testsuites/support/include/buffer_test_io.h
> @@ -1,3 +1,38 @@
> +/* SPDX-License-Identifier: BSD-2-Clause */
> +
> +/**
> + *  @file
> + *
> + *  @ingroup support
> + *
> + *  @brief This is the buffer_test_io header file.
> + */
> +
> +/*
> + * COPYRIGHT (C) 1989-2011 On-Line Applications Research Corporation (OAR).
> + *
> + * Redistribution and use in source and binary forms, with or without
> + * modification, are permitted provided that the following conditions
> + * are met:
> + * 1. Redistributions of source code must retain the above copyright
> + *notice, this list of conditions and the following disclaimer.
> + * 2. Redistributions in binary form must reproduce the above copyright
> + *notice, this list of conditions and the following disclaimer in the
> + *documentation and/or other materials provided with the distribution.
> + *
> + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 
> IS"
> + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
> + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
> + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> + * POSSIBILITY OF SUCH DAMAGE.
> + */
> +
>  /*
>   *  Support for running the test output through a buffer
>   */
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: [PATCH] wscript: Allow start code to be written in C

2022-04-21 Thread Sebastian Huber

On 18/04/2022 19:32, Kinsey Moore wrote:

Start code for most platforms requires hand-coded ASM but some can be
bootstrapped entirely in C, especially for paravirtualized platforms.
This change allows start code to be written in C where possible instead
of requiring architecture-specific ASM to bridge to C.


Looks good.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

[RSB 2/2] 6/7: Update GCC prerequisites for GCC 10 and 12

2022-04-21 Thread Sebastian Huber
---
 .../config/tools/rtems-gcc-10-newlib-head.cfg |  2 +-
 .../tools/rtems-gcc-head-newlib-head.cfg  |  2 +-
 source-builder/config/gcc-10.cfg  | 20 +++
 source-builder/config/gcc-12.cfg  | 20 +++
 4 files changed, 42 insertions(+), 2 deletions(-)
 create mode 100644 source-builder/config/gcc-10.cfg
 create mode 100644 source-builder/config/gcc-12.cfg

diff --git a/rtems/config/tools/rtems-gcc-10-newlib-head.cfg 
b/rtems/config/tools/rtems-gcc-10-newlib-head.cfg
index e32..b98e251 100644
--- a/rtems/config/tools/rtems-gcc-10-newlib-head.cfg
+++ b/rtems/config/tools/rtems-gcc-10-newlib-head.cfg
@@ -26,4 +26,4 @@
 %define with_plugin 0
 %define with_iconv 1
 
-%include %{_configdir}/gcc-9.cfg
+%include %{_configdir}/gcc-10.cfg
diff --git a/rtems/config/tools/rtems-gcc-head-newlib-head.cfg 
b/rtems/config/tools/rtems-gcc-head-newlib-head.cfg
index eb0fa89..852eedb 100644
--- a/rtems/config/tools/rtems-gcc-head-newlib-head.cfg
+++ b/rtems/config/tools/rtems-gcc-head-newlib-head.cfg
@@ -20,4 +20,4 @@
 %define with_plugin 0
 %define with_iconv 1
 
-%include %{_configdir}/gcc-9.cfg
+%include %{_configdir}/gcc-12.cfg
diff --git a/source-builder/config/gcc-10.cfg b/source-builder/config/gcc-10.cfg
new file mode 100644
index 000..a2039dc
--- /dev/null
+++ b/source-builder/config/gcc-10.cfg
@@ -0,0 +1,20 @@
+#
+# GCC 10
+#
+# This configuration file configure's, make's and install's gcc. It uses
+# newlib, ISL, MPFR, MPC, and GMP in a one-tree build configuration.
+#
+
+%define isl_version 0.24
+%hash sha512 isl-%{isl_version}.tar.bz2 
aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
+
+%define mpfr_version 4.1.0
+%hash sha512 mpfr-%{mpfr_version}.tar.bz2 
410208ee0d48474c1c10d3d4a59decd2dfa187064183b09358ec4c4666e34d74383128436b404123b831e585d81a9176b24c7ced9d913967c5fce35d4040a0b4
+
+%define mpc_version 1.2.1
+%hash sha512 mpc-%{mpc_version}.tar.gz 
3279f813ab37f47fdcc800e4ac5f306417d07f539593ca715876e43e04896e1d5bceccfb288ef2908a3f24b760747d0dbd0392a24b9b341bc3e12082e5c836ee
+
+%define gmp_version 6.2.1
+%hash sha512 gmp-%{gmp_version}.tar.bz2 
8904334a3bcc5c896ececabc75cda9dec642e401fb5397c4992c4fabea5e962c9ce8bd44e8e4233c34e55c8010cc28db0545f5f750cbdbb5f00af538dc763be9
+
+%include %{_configdir}/gcc-common-1.cfg
diff --git a/source-builder/config/gcc-12.cfg b/source-builder/config/gcc-12.cfg
new file mode 100644
index 000..21b2b17
--- /dev/null
+++ b/source-builder/config/gcc-12.cfg
@@ -0,0 +1,20 @@
+#
+# GCC 12
+#
+# This configuration file configure's, make's and install's gcc. It uses
+# newlib, ISL, MPFR, MPC, and GMP in a one-tree build configuration.
+#
+
+%define isl_version 0.24
+%hash sha512 isl-%{isl_version}.tar.bz2 
aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
+
+%define mpfr_version 4.1.0
+%hash sha512 mpfr-%{mpfr_version}.tar.bz2 
410208ee0d48474c1c10d3d4a59decd2dfa187064183b09358ec4c4666e34d74383128436b404123b831e585d81a9176b24c7ced9d913967c5fce35d4040a0b4
+
+%define mpc_version 1.2.1
+%hash sha512 mpc-%{mpc_version}.tar.gz 
3279f813ab37f47fdcc800e4ac5f306417d07f539593ca715876e43e04896e1d5bceccfb288ef2908a3f24b760747d0dbd0392a24b9b341bc3e12082e5c836ee
+
+%define gmp_version 6.2.1
+%hash sha512 gmp-%{gmp_version}.tar.bz2 
8904334a3bcc5c896ececabc75cda9dec642e401fb5397c4992c4fabea5e962c9ce8bd44e8e4233c34e55c8010cc28db0545f5f750cbdbb5f00af538dc763be9
+
+%include %{_configdir}/gcc-common-1.cfg
-- 
2.34.1

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


[RSB 1/2] gcc: Move GMP, MPC, MPFR sources to common

2022-04-21 Thread Sebastian Huber
Use GCC infrastructure download directory for GCC prerequisites.
---
 source-builder/config/gcc-4.3-1.cfg| 7 ---
 source-builder/config/gcc-4.4-1.cfg| 7 ---
 source-builder/config/gcc-4.5-1.cfg| 7 ---
 source-builder/config/gcc-4.6-1.cfg| 7 ---
 source-builder/config/gcc-4.7-1.cfg| 7 ---
 source-builder/config/gcc-4.8-1.cfg| 7 ---
 source-builder/config/gcc-4.9-1.cfg| 7 ---
 source-builder/config/gcc-6-1.cfg  | 7 ---
 source-builder/config/gcc-7-1.cfg  | 7 ---
 source-builder/config/gcc-7.2-1.cfg| 7 ---
 source-builder/config/gcc-9.cfg| 4 
 source-builder/config/gcc-common-1.cfg | 3 +++
 12 files changed, 3 insertions(+), 74 deletions(-)

diff --git a/source-builder/config/gcc-4.3-1.cfg 
b/source-builder/config/gcc-4.3-1.cfg
index 69ea367..24d4010 100644
--- a/source-builder/config/gcc-4.3-1.cfg
+++ b/source-builder/config/gcc-4.3-1.cfg
@@ -23,13 +23,6 @@
 #
 %source set newlib 
https://sourceware.org/pub/newlib/newlib-%{newlib_version}.tar.gz
 
-#
-# Packages GCC requires
-#
-%source set mpfr 
http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
-%source set mpc 
http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
-%source set gmp https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
-
 #
 # GCC Common build script.
 #
diff --git a/source-builder/config/gcc-4.4-1.cfg 
b/source-builder/config/gcc-4.4-1.cfg
index 2c70919..c6ae586 100644
--- a/source-builder/config/gcc-4.4-1.cfg
+++ b/source-builder/config/gcc-4.4-1.cfg
@@ -22,13 +22,6 @@
 #
 %source set newlib 
https://sourceware.org/pub/newlib/newlib-%{newlib_version}.tar.gz
 
-#
-# Packages GCC requires
-#
-%source set mpfr 
http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
-%source set mpc 
http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
-%source set gmp https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
-
 #
 # GCC Common build script.
 #
diff --git a/source-builder/config/gcc-4.5-1.cfg 
b/source-builder/config/gcc-4.5-1.cfg
index fbff31c..8a9f8ca 100644
--- a/source-builder/config/gcc-4.5-1.cfg
+++ b/source-builder/config/gcc-4.5-1.cfg
@@ -18,13 +18,6 @@
 #
 %source set newlib 
https://sourceware.org/pub/newlib/newlib-%{newlib_version}.tar.gz
 
-#
-# Packages GCC requires
-#
-%source set mpfr 
http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
-%source set mpc 
http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
-%source set gmp https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
-
 #
 # GCC Common build script.
 #
diff --git a/source-builder/config/gcc-4.6-1.cfg 
b/source-builder/config/gcc-4.6-1.cfg
index 98f8d7e..cecfdb5 100644
--- a/source-builder/config/gcc-4.6-1.cfg
+++ b/source-builder/config/gcc-4.6-1.cfg
@@ -22,13 +22,6 @@
 #
 %source set newlib 
https://sourceware.org/pub/newlib/newlib-%{newlib_version}.tar.gz
 
-#
-# Packages GCC requires
-#
-%source set mpfr 
http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
-%source set mpc 
http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
-%source set gmp https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
-
 #
 # GCC Common build script.
 #
diff --git a/source-builder/config/gcc-4.7-1.cfg 
b/source-builder/config/gcc-4.7-1.cfg
index 0eac21f..79a50db 100644
--- a/source-builder/config/gcc-4.7-1.cfg
+++ b/source-builder/config/gcc-4.7-1.cfg
@@ -27,13 +27,6 @@
 #
 %source set newlib 
https://sourceware.org/pub/newlib/newlib-%{newlib_version}.tar.gz
 
-#
-# Packages GCC requires
-#
-%source set mpfr 
http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
-%source set mpc 
http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
-%source set gmp https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
-
 #
 # GCC Common build script.
 #
diff --git a/source-builder/config/gcc-4.8-1.cfg 
b/source-builder/config/gcc-4.8-1.cfg
index aa62837..b2d4208 100644
--- a/source-builder/config/gcc-4.8-1.cfg
+++ b/source-builder/config/gcc-4.8-1.cfg
@@ -18,13 +18,6 @@
 #
 %source set newlib 
https://sourceware.org/pub/newlib/newlib-%{newlib_version}.tar.gz
 
-#
-# Packages GCC requires
-#
-%source set mpfr 
http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
-%source set mpc 
http://www.multiprecision.org/downloads/mpc-%{mpc_version}.tar.gz
-%source set gmp https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
-
 #
 # GCC Common build script.
 #
diff --git a/source-builder/config/gcc-4.9-1.cfg 
b/source-builder/config/gcc-4.9-1.cfg
index e28b560..73d2e4c 100644
--- a/source-builder/config/gcc-4.9-1.cfg
+++ b/source-builder/config/gcc-4.9-1.cfg
@@ -18,13 +18,6 @@
 #
 %source set newlib 
https://sourceware.org/pub/newlib/newlib-%{newlib_version}.tar.gz
 
-#
-# Packages GCC requires
-#
-%source set mpfr 
http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
-%source set mpc 
http://www.multiprecision.org/mpc/download/m

Re: Building RTEMS 6 toolchain on a Mac

2022-04-21 Thread Sebastian Huber

On 18/04/2022 21:01, Cedric Berger wrote:

Hello,

On 11.04.22 00:37, Chris Johns wrote:
I suspect we will need a later version of expat that has the aarch64 
support. I

do not have access access to an M1 Mac so I cannot test this.

Chris


So I tried to compile RTEMS 6 for arm on MacOS for both the M1 and Intel 
architecture. It was not very sucessful.


Command: rtems# ../source-builder/sb-set-builder 
--prefix=/opt/data/workspace/rtems-tools 6/rtems-arm


First on a M1 (fully patched and updated Mac Book Pro):

I got the same failure as Jay Zhu with expat, but that was easy to fix: 
I can confirm that moving from expat 2.1.0 to expat 2.4.8 solve the 
problem.


Next is the same issue with GMP. Again easy to fix by moving from gmp 
6.1.0 to 6.2.1, which solves the problem.


I sent a patch to update the GCC prerequisites to the versions in the 
latest gcc/contrib/download_prerequisites script for GCC 10 and 12.




At this point everthing compiles fine up to and including binutils 2.38

The next problem however is with gcc, which fails the same way (machine 
`arm64-apple' not recognized)


Fixing this however is above my pay grade: It seems RTEMS uses a 
patched, unreleased version of GCC. what to do?


RTEMS follows the release branch of GCC. Some patches cannot be back 
ported to a GCC release branch in upstream GCC, so there may be some 
RTEMS-specific patches. In general, all RTEMS-specific changes are 
integrated in the GCC master.




Next I tried on an Intel Mac (an older fully patched and updated Mac 
Book Pro):


The build also failed compiling gcc, but with another error:

clang: warning: argument unused during compilation: '-no-pie' 
[-Wunused-command-line-argument]

Undefined symbols for architecture x86_64:
   "_arm_arch6", referenced from:
   __GLOBAL__sub_I_gencondmd.c in gencondmd.o
   "_arm_arch6m", referenced from:
   __GLOBAL__sub_I_gencondmd.c in gencondmd.o
   "_arm_arch7", referenced from:
   __GLOBAL__sub_I_gencondmd.c in gencondmd.o
   "_arm_arch8", referenced from:
   __GLOBAL__sub_I_gencondmd.c in gencondmd.o
   "_arm_arch_notm", referenced from:
   __GLOBAL__sub_I_gencondmd.c in gencondmd.o
   "_arm_arch_thumb2", referenced from:
   __GLOBAL__sub_I_gencondmd.c in gencondmd.o
   "_target_flags", referenced from:
   __GLOBAL__sub_I_gencondmd.c in gencondmd.o
ld: symbol(s) not found for architecture x86_64

is this something like this? 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92061#c5


If this is the same bug, then it is fixed on gcc 11.2 according to the 
last comment above.


So what to do next? GCC fails on both Intel and M1 Mac, for different 
reasons.


Could GCC be upgraded to 11.2 or 12.0 which should be available very 
soon? are the patches still needed?


It is still undecided which GCC version will be used for RTEMS 6. GCC 10 
will reach its end of life with the next release this year. GCC 12 would 
be brand new. We didn't use GCC 11 so far. I tend to use GCC 12.


--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel