diff options
author | Chris Johns <chrisj@rtems.org> | 2017-12-23 18:18:56 +1100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-25 08:45:26 +0100 |
commit | 2afb22b7e1ebcbe40373ff7e0efae7d207c655a9 (patch) | |
tree | 44759efe9374f13200a97e96d91bd9a2b7e5ce2a /c/src/lib/libcpu/m68k/Makefile.am | |
parent | MAINTAINERS: Add myself to Write After Approval. (diff) | |
download | rtems-2afb22b7e1ebcbe40373ff7e0efae7d207c655a9.tar.bz2 |
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.
Diffstat (limited to 'c/src/lib/libcpu/m68k/Makefile.am')
-rw-r--r-- | c/src/lib/libcpu/m68k/Makefile.am | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/c/src/lib/libcpu/m68k/Makefile.am b/c/src/lib/libcpu/m68k/Makefile.am index 18724352d6..2800e421c4 100644 --- a/c/src/lib/libcpu/m68k/Makefile.am +++ b/c/src/lib/libcpu/m68k/Makefile.am @@ -67,10 +67,6 @@ EXTRA_DIST = m68040/fpsp/README if mcf5206 # mcf5206/include -include_mcf5206dir = $(includedir)/mcf5206 -include_mcf5206_HEADERS = mcf5206/include/mcf5206e.h mcf5206/include/mcfmbus.h \ - mcf5206/include/mcfuart.h - ## mcf5206/clock noinst_PROGRAMS += mcf5206/clock.rel mcf5206_clock_rel_SOURCES = mcf5206/clock/ckinit.c @@ -98,9 +94,6 @@ endif if mcf5223x ## mcf5223x/include -include_mcf5223xdir = $(includedir)/mcf5223x -include_mcf5223x_HEADERS = mcf5223x/include/mcf5223x.h - ## mcf5223x/cache noinst_PROGRAMS += mcf5223x/cachepd.rel mcf5223x_cachepd_rel_SOURCES = mcf5223x/cache/cachepd.c @@ -110,9 +103,6 @@ endif if mcf5225x ## mcf5225x/include -include_mcf5225xdir = $(includedir)/mcf5225x -include_mcf5225x_HEADERS = mcf5225x/include/mcf5225x.h - # mcf5225x/cache noinst_PROGRAMS += mcf5225x/cachepd.rel mcf5225x_cachepd_rel_SOURCES = mcf5225x/cache/cachepd.c @@ -121,15 +111,11 @@ mcf5225x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) # Network if HAS_NETWORKING -include_mcf5225x_HEADERS += mcf5225x/include/fec.h endif ## HAS_NETWORKING endif if mcf5235 ## mcf5235/include -include_mcf5235dir = $(includedir)/mcf5235 -include_mcf5235_HEADERS = mcf5235/include/mcf5235.h - ## mcf5235/cache noinst_PROGRAMS += mcf5235/cachepd.rel mcf5235_cachepd_rel_SOURCES = mcf5235/cache/cachepd.c @@ -139,9 +125,6 @@ endif if mcf532x ## mcf532x/include -include_mcf532xdir = $(includedir)/mcf532x -include_mcf532x_HEADERS = mcf532x/include/mcf532x.h - ## mcf532x/cache noinst_PROGRAMS += mcf532x/cachepd.rel mcf532x_cachepd_rel_SOURCES = mcf532x/cache/cachepd.c @@ -151,9 +134,6 @@ endif if mcf5272 ## mcf5272/include -include_mcf5272dir = $(includedir)/mcf5272 -include_mcf5272_HEADERS = mcf5272/include/mcf5272.h - ## clock noinst_PROGRAMS += mcf5272/clock.rel mcf5272_clock_rel_SOURCES = mcf5272/clock/ckinit.c @@ -169,9 +149,6 @@ endif if mcf5282 ## mcf5282/include -include_mcf5282dir = $(includedir)/mcf5282 -include_mcf5282_HEADERS = mcf5282/include/mcf5282.h - noinst_PROGRAMS += mcf5282/cachepd.rel mcf5282_cachepd_rel_SOURCES = mcf5282/cache/cachepd.c mcf5282_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache @@ -180,13 +157,8 @@ endif if mcf548x ## mcf548x/include -include_mcf548xdir = $(includedir)/mcf548x -include_mcf548x_HEADERS = mcf548x/include/mcf548x.h - ## mcf548x/mcdma noinst_PROGRAMS += mcf548x/mcdma.rel -include_mcf548x_HEADERS += mcf548x/mcdma/MCD_progCheck.h mcf548x/mcdma/MCD_dma.h \ - mcf548x/mcdma/MCD_tasksInit.h mcf548x/mcdma/mcdma_glue.h mcf548x_mcdma_rel_SOURCES = mcf548x/mcdma/MCD_dmaApi.c mcf548x/mcdma/MCD_tasksInit.c \ mcf548x/mcdma/MCD_tasks.c mcf548x/mcdma/mcdma_glue.c @@ -194,5 +166,4 @@ mcf548x_mcdma_rel_CPPFLAGS = $(AM_CPPFLAGS) mcf548x_mcdma_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) endif -include $(srcdir)/preinstall.am include $(top_srcdir)/../../../automake/local.am |