source: rtems/testsuites/ada/configure.ac @ d8de6b9

5
Last change on this file since d8de6b9 was 2afb22b, checked in by Chris Johns <chrisj@…>, on 12/23/17 at 07:18:56

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.

  • Property mode set to 100644
File size: 3.5 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-ada-tests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5AC_CONFIG_SRCDIR([support])
6RTEMS_TOP([../..],[..])
7RTEMS_SOURCE_TOP
8RTEMS_BUILD_TOP
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
13AM_MAINTAINER_MODE
14
15AC_CHECK_PROGS([M4],[gm4 m4])
16RTEMS_PROG_GNAT
17RTEMS_CANONICALIZE_TOOLS
18
19RTEMS_ENV_RTEMSBSP
20RTEMS_PROJECT_ROOT
21
22RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
23RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING])
24
25AS_IF([test x"$HAVE_GNAT" = x"no"],[
26  AC_MSG_ERROR([No acceptable GNATMAKE found.])
27])
28
29AM_CONDITIONAL(HAS_MP,[test "$rtems_cv_RTEMS_MULTIPROCESSING" = yes])
30
31RTEMS_CHECK_TOOL([GNATPREP],[gnatprep],[])
32
33# FIXME: Enable building the examples which are known to be broken
34AM_CONDITIONAL([EXPADA],
35  [test x"$enable_expada" = xyes && test x"$HAVE_GNAT" = xyes])
36
37AC_SUBST([rtems_ada_testsdir],["\$(libdir)/rtems-][_RTEMS_API][/ada-tests"])
38
39# Explicitly list all Makefiles here
40AC_CONFIG_FILES([Makefile])
41
42AC_CONFIG_FILES([support/Makefile])
43
44AC_CONFIG_FILES([
45samples/Makefile
46samples/base_sp/Makefile
47samples/hello/Makefile
48samples/ticker/Makefile
49samples/nsecs/Makefile
50samples/base_mp/Makefile
51samples/base_mp/node1/Makefile
52samples/base_mp/node2/Makefile
53])
54
55AC_CONFIG_FILES([
56sptests/Makefile
57sptests/sp01/Makefile
58sptests/sp02/Makefile
59sptests/sp03/Makefile
60sptests/sp04/Makefile
61sptests/sp05/Makefile
62sptests/sp06/Makefile
63sptests/sp07/Makefile
64sptests/sp08/Makefile
65sptests/sp09/Makefile
66sptests/sp11/Makefile
67sptests/sp12/Makefile
68sptests/sp13/Makefile
69sptests/sp14/Makefile
70sptests/sp15/Makefile
71sptests/sp16/Makefile
72sptests/sp17/Makefile
73sptests/sp19/Makefile
74sptests/sp20/Makefile
75sptests/sp22/Makefile
76sptests/sp23/Makefile
77sptests/sp24/Makefile
78sptests/sp25/Makefile
79sptests/spname01/Makefile
80sptests/spatcb01/Makefile
81])
82
83AC_CONFIG_FILES([
84tmtests/Makefile
85tmtests/tm01/Makefile
86tmtests/tm02/Makefile
87tmtests/tm03/Makefile
88tmtests/tm04/Makefile
89tmtests/tm05/Makefile
90tmtests/tm06/Makefile
91tmtests/tm07/Makefile
92tmtests/tm08/Makefile
93tmtests/tm09/Makefile
94tmtests/tm10/Makefile
95tmtests/tm11/Makefile
96tmtests/tm12/Makefile
97tmtests/tm13/Makefile
98tmtests/tm14/Makefile
99tmtests/tm15/Makefile
100tmtests/tm16/Makefile
101tmtests/tm17/Makefile
102tmtests/tm18/Makefile
103tmtests/tm19/Makefile
104tmtests/tm20/Makefile
105tmtests/tm21/Makefile
106tmtests/tm22/Makefile
107tmtests/tm23/Makefile
108tmtests/tm24/Makefile
109tmtests/tm25/Makefile
110tmtests/tm28/Makefile
111tmtests/tm29/Makefile
112tmtests/tmck/Makefile
113tmtests/tmoverhd/Makefile
114])
115
116AC_CONFIG_FILES([
117mptests/Makefile
118mptests/mp01/Makefile
119mptests/mp01/node1/Makefile
120mptests/mp01/node2/Makefile
121mptests/mp03/Makefile
122mptests/mp03/node1/Makefile
123mptests/mp03/node2/Makefile
124mptests/mp04/Makefile
125mptests/mp04/node1/Makefile
126mptests/mp04/node2/Makefile
127mptests/mp05/Makefile
128mptests/mp05/node1/Makefile
129mptests/mp05/node2/Makefile
130mptests/mp06/Makefile
131mptests/mp06/node1/Makefile
132mptests/mp06/node2/Makefile
133mptests/mp07/Makefile
134mptests/mp07/node1/Makefile
135mptests/mp07/node2/Makefile
136mptests/mp08/Makefile
137mptests/mp08/node1/Makefile
138mptests/mp08/node2/Makefile
139mptests/mp09/Makefile
140mptests/mp09/node1/Makefile
141mptests/mp09/node2/Makefile
142mptests/mp10/Makefile
143mptests/mp10/node1/Makefile
144mptests/mp10/node2/Makefile
145mptests/mp11/Makefile
146mptests/mp11/node1/Makefile
147mptests/mp11/node2/Makefile
148mptests/mp12/Makefile
149mptests/mp12/node1/Makefile
150mptests/mp12/node2/Makefile
151mptests/mp13/Makefile
152mptests/mp13/node1/Makefile
153mptests/mp13/node2/Makefile
154mptests/mp14/Makefile
155mptests/mp14/node1/Makefile
156mptests/mp14/node2/Makefile
157])
158
159AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.