Re: [PATCH] Avoid default RTEMS application configuration

2018-10-18 Thread Sebastian Huber
- Am 18. Okt 2018 um 19:56 schrieb Chris Johns chr...@rtems.org: > On 18/10/18 6:38 pm, Sebastian Huber wrote: >> Use a test body with a proper RTEMS application configuration to avoid a >> dependency on the default configuration. Do not include >> directly since this header file is an >> im

Re: SMP build fails looking for omp.h

2018-10-18 Thread Sebastian Huber
- Am 18. Okt 2018 um 20:02 schrieb joel j...@rtems.org: > Hi > > Looks like there is a missing configuration check for omp.h: > > > ../../../../../../rtems/c/src/../../testsuites/smptests/smpopenmp01/init.c:34:10: > fatal error: omp.h: No such file or directory > 34 | #include > |

[PATCH] Update the copyright year.

2018-10-18 Thread chrisj
From: Chris Johns --- bsp-howto/index.rst| 2 +- c-user/index.rst | 2 +- common/conf.py | 2 +- cpu-supplement/index.rst | 2 +- develenv/index.rst | 2 +- eclipse/index.rst | 2 +- filesystem/index.rst | 2 +- networking/index.rst |

[PATCH v2] sb: Add support to search for a suitable version of python.

2018-10-18 Thread chrisj
From: Chris Johns The command python has been removed from upstream python and python2 and python3 is now used. This patch wraps the commands in a shell script that locates a suitable python to run. Updates #3537 --- source-builder/config/gdb-common-1.cfg | 105 +- source-builder/de

[PATCH v2] Python2/Python3 support

2018-10-18 Thread chrisj
The patch implements runtime support to select a python to run the RSB. The selection order is: python2 python3 python In a future release we can change this order without needing to change the support structures around the RSB. The patch also handles GDB's selection of python moving away

SMP build fails looking for omp.h

2018-10-18 Thread Joel Sherrill
Hi Looks like there is a missing configuration check for omp.h: ../../../../../../rtems/c/src/../../testsuites/smptests/smpopenmp01/init.c:34:10: fatal error: omp.h: No such file or directory 34 | #include | ^~~ compilation terminated. --joel _

Re: [PATCH] Avoid default RTEMS application configuration

2018-10-18 Thread Chris Johns
On 18/10/18 6:38 pm, Sebastian Huber wrote: > Use a test body with a proper RTEMS application configuration to avoid a > dependency on the default configuration. Do not include > directly since this header file is an > implementation detail. > > Update #3551. > --- > rtems.py | 30 +

Re: machine/param.h Leak of non-standard methods to Application Space

2018-10-18 Thread Joel Sherrill
On Thu, Oct 18, 2018 at 12:08 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 17/10/2018 17:04, Joel Sherrill wrote: > > Hi > > > > We are updating the port of a large third party framework and ran > > into an issue where what I would think are BSD kernel methods > > leak into

[PATCH v2] Remove superfluous configure checks

2018-10-18 Thread Sebastian Huber
The results of these checks are unused, covered by other checks or check obvious things. Update #3409. --- cpukit/Makefile.am | 49 -- cpukit/configure.ac | 99 + 2 files changed, 23 insertions(+), 125 deletions(-) diff

[PATCH 3/8] Remove __assert()

2018-10-18 Thread Sebastian Huber
This function is provided by Newlib since 2000. Update #3409. --- cpukit/configure.ac | 1 - cpukit/libcsupport/src/__assert.c | 15 --- 2 files changed, 16 deletions(-) diff --git a/cpukit/configure.ac b/cpukit/configure.ac index 0dd51376ed..bc6337a4fc 100644 --- a/cp

[PATCH 7/8] Remove checks for flockfile(), etc. declarations

2018-10-18 Thread Sebastian Huber
Declarations provided by Newlib since 2002. Update #3409. --- cpukit/configure.ac | 5 - cpukit/libcsupport/src/flockfile.c| 2 +- cpukit/libcsupport/src/ftrylockfile.c | 2 +- cpukit/libcsupport/src/funlockfile.c | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-)

[PATCH 5/8] Remove optional getrusage() declaration

2018-10-18 Thread Sebastian Huber
Declaration provided by Newlib since 2014. Update #3409. --- cpukit/configure.ac| 3 --- cpukit/libcsupport/src/getrusage.c | 4 2 files changed, 7 deletions(-) diff --git a/cpukit/configure.ac b/cpukit/configure.ac index 149eb0bda0..ae96f5567c 100644 --- a/cpukit/configure.

[PATCH 1/8] Remove strlcat(), strlcpy(), strsep(), readdir_r()

2018-10-18 Thread Sebastian Huber
These functions are provided by Newlib since 2002. Update #3409. --- cpukit/Makefile.am | 4 -- cpukit/configure.ac| 7 +-- cpukit/libcsupport/src/readdir_r.c | 35 --- cpukit/libcsupport/src/strlcat.c | 47 cpukit/libcsupport/s

[PATCH 6/8] Remove getcwd()

2018-10-18 Thread Sebastian Huber
This function is provided by Newlib since 2000. Update #3409. --- cpukit/Makefile.am | 1 - cpukit/configure.ac | 4 - cpukit/libcsupport/src/getcwd.c | 296 3 files changed, 301 deletions(-) delete mode 100644 cpukit/libcsupp

[PATCH 4/8] Remove ttyname()

2018-10-18 Thread Sebastian Huber
This function is provided by Newlib since 2000. Update #3409. --- cpukit/Makefile.am | 1 - cpukit/configure.ac | 2 +- cpukit/libcsupport/src/ttyname.c | 121 --- 3 files changed, 1 insertion(+), 123 deletions(-) delete mode 100

[PATCH 2/8] Remove isatty()

2018-10-18 Thread Sebastian Huber
These functions are provided by Newlib since 2000. Update #3409. --- cpukit/Makefile.am | 1 - cpukit/configure.ac | 1 - cpukit/libcsupport/src/isatty.c | 40 3 files changed, 42 deletions(-) delete mode 100644 cpukit/libcsuppo

[PATCH 8/8] Remove superfluous configure checks

2018-10-18 Thread Sebastian Huber
The results of these checks are unused, covered by other checks or check obvious things. Update #3409. --- cpukit/configure.ac | 95 + 1 file changed, 1 insertion(+), 94 deletions(-) diff --git a/cpukit/configure.ac b/cpukit/configure.ac index

[PATCH 2/2] Support O_NOFOLLOW open() flag

2018-10-18 Thread Sebastian Huber
Close #3546. --- cpukit/libcsupport/src/open.c| 7 +++- testsuites/psxtests/psxfile01/test.c | 67 2 files changed, 73 insertions(+), 1 deletion(-) diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c index 554311c5aa..86d0bbeab9

[PATCH 1/2] Support O_CLOEXEC open() flag

2018-10-18 Thread Sebastian Huber
Make sure this flag is ignored and does not prevent a successful open. Close #3547. --- testsuites/psxtests/psxfile01/test.c | 32 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/

Re: [PATCH] Avoid default RTEMS application configuration

2018-10-18 Thread Sebastian Huber
I am able to build examples-v2 with this patch. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese N

Re: [PATCH 1/6] Move default config to librtemsdefaultconfig.a

2018-10-18 Thread Sebastian Huber
On 18/10/2018 00:49, Chris Johns wrote: On 17/10/2018 21:25, Sebastian Huber wrote: The stuff in rtems_waf makes some problems. It uses the RTEMS libraries for the probes which contain simply a main() function and no RTEMS configuration. There are two options to address this issue. Should rtems

[PATCH] Avoid default RTEMS application configuration

2018-10-18 Thread Sebastian Huber
Use a test body with a proper RTEMS application configuration to avoid a dependency on the default configuration. Do not include directly since this header file is an implementation detail. Update #3551. --- rtems.py | 30 +- 1 file changed, 17 insertions(+), 13 dele