Commit Graph

16 Commits

Author SHA1 Message Date
Chris Johns
2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00
Joel Sherrill
61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Ralf Corsepius
ace38fb787 2011-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/iconv.c, POSIX/iconv_open.c, POSIX/iconv_close.c: New.
	* POSIX/Makefile.am: Add iconv, iconv_open, iconv_close.
2011-07-29 13:59:42 +00:00
Ralf Corsepius
7d3f9c646a Add HAVE_CONFIG_H. 2011-02-22 07:37:03 +00:00
Ralf Corsepius
b8563fa95e 2011-01-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/clock_gettime.c, POSIX/gettimeofday.c: New.
	* POSIX/Makefile.am: Add clock_gettime, gettimeofday.c.
2011-02-02 07:34:34 +00:00
Ralf Corsepius
268531a72e 2011-01-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/clock_gettime.c, POSIX/gettimeofday.c: New.
	* Makefile.am: Add clock_gettime, gettimeofday.c.
2011-01-31 15:59:19 +00:00
Ralf Corsepius
2c0464405f 2010-09-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/Makefile.am: Add htonl.
	* POSIX/htonl.c: New.
2010-09-01 06:42:58 +00:00
Ralf Corsepius
5d8a42a518 Add flockfile, funlockfile, ftrylockfile. 2010-04-11 16:44:35 +00:00
Ralf Corsepius
87fbcc5ea2 New. 2010-04-11 16:44:20 +00:00
Ralf Corsepius
4ec957a156 Add readv, writev. 2009-12-06 06:52:08 +00:00
Ralf Corsepius
c7183ce0d9 New. 2009-12-06 06:51:40 +00:00
Ralf Corsepius
3e70362587 2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/sigfillset.c: Let main() return "status".
2009-12-04 15:18:47 +00:00
Ralf Corsepius
0c5ff13483 2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/Makefile.am: Add sigaddset, sigdelset, sigemptyset,
	sigismember.
	* POSIX/sigaddset.c, POSIX/sigdelset.c, POSIX/sigemptyset.c,
	POSIX/sigismember.c: New.
2009-12-04 15:17:45 +00:00
Ralf Corsepius
4583cac88e New. 2009-12-04 15:17:31 +00:00
Ralf Corsepius
0cd3878008 2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/Makefile.am: Add wait.
	* POSIX/wait.c: New.
2009-12-04 06:55:02 +00:00
Ralf Corsepius
60d47abfcf New. 2009-12-02 15:00:05 +00:00