source: rtems/cpukit/rtems/Makefile.am @ 2afb22b

Last change on this file since 2afb22b was 2afb22b, checked in by Chris Johns <chrisj@…>, on Dec 23, 2017 at 7:18:56 AM

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: 6.9 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4noinst_LIBRARIES = librtems.a
5librtems_a_CPPFLAGS = $(AM_CPPFLAGS)
6
7# include
8
9# include/rtems/rtems
10if HAS_MP
11## We only build multiprocessing related files if HAS_MP was defined
12endif
13
14## src
15librtems_a_SOURCES = src/rtemsbuildid.c
16librtems_a_SOURCES += src/rtemsbuildname.c
17librtems_a_SOURCES += src/rtemsobjectgetname.c
18librtems_a_SOURCES += src/rtemsobjectsetname.c
19librtems_a_SOURCES += src/rtemsobjectidapimaximum.c
20librtems_a_SOURCES += src/rtemsobjectidapiminimum.c
21librtems_a_SOURCES += src/rtemsobjectidgetapi.c
22librtems_a_SOURCES += src/rtemsobjectidgetclass.c
23librtems_a_SOURCES += src/rtemsobjectidgetindex.c
24librtems_a_SOURCES += src/rtemsobjectidgetnode.c
25librtems_a_SOURCES += src/rtemsobjectapiminimumclass.c
26librtems_a_SOURCES += src/rtemsobjectapimaximumclass.c
27librtems_a_SOURCES += src/rtemsobjectgetapiname.c
28librtems_a_SOURCES += src/rtemsobjectgetapiclassname.c
29librtems_a_SOURCES += src/rtemsobjectgetclassinfo.c
30librtems_a_SOURCES += src/rtemsobjectgetclassicname.c
31
32## TASK_C_FILES
33librtems_a_SOURCES += src/tasks.c
34librtems_a_SOURCES += src/taskcreate.c
35librtems_a_SOURCES += src/taskdelete.c
36librtems_a_SOURCES += src/taskgetaffinity.c
37librtems_a_SOURCES += src/taskgetpriority.c
38librtems_a_SOURCES += src/taskgetscheduler.c
39librtems_a_SOURCES += src/taskident.c
40librtems_a_SOURCES += src/taskinitusers.c
41librtems_a_SOURCES += src/taskissuspended.c
42librtems_a_SOURCES += src/taskiterate.c
43librtems_a_SOURCES += src/taskmode.c
44librtems_a_SOURCES += src/taskrestart.c
45librtems_a_SOURCES += src/taskresume.c
46librtems_a_SOURCES += src/taskself.c
47librtems_a_SOURCES += src/tasksetaffinity.c
48librtems_a_SOURCES += src/tasksetpriority.c
49librtems_a_SOURCES += src/tasksetscheduler.c
50librtems_a_SOURCES += src/taskstart.c
51librtems_a_SOURCES += src/tasksuspend.c
52librtems_a_SOURCES += src/taskwakeafter.c
53librtems_a_SOURCES += src/taskwakewhen.c
54librtems_a_SOURCES += src/scheduleraddprocessor.c
55librtems_a_SOURCES += src/schedulergetprocessorset.c
56librtems_a_SOURCES += src/schedulerident.c
57librtems_a_SOURCES += src/scheduleridentbyprocessor.c
58librtems_a_SOURCES += src/scheduleridentbyprocessorset.c
59librtems_a_SOURCES += src/schedulerremoveprocessor.c
60
61## RATEMON_C_FILES
62librtems_a_SOURCES += src/ratemon.c
63librtems_a_SOURCES += src/ratemoncancel.c
64librtems_a_SOURCES += src/ratemoncreate.c
65librtems_a_SOURCES += src/ratemondelete.c
66librtems_a_SOURCES += src/ratemongetstatus.c
67librtems_a_SOURCES += src/ratemongetstatistics.c
68librtems_a_SOURCES += src/ratemonresetstatistics.c
69librtems_a_SOURCES += src/ratemonresetall.c
70librtems_a_SOURCES += src/ratemonreportstatistics.c
71librtems_a_SOURCES += src/ratemonident.c
72librtems_a_SOURCES += src/ratemonperiod.c
73librtems_a_SOURCES += src/ratemontimeout.c
74
75## INTR_C_FILES
76librtems_a_SOURCES += src/intrbody.c
77librtems_a_SOURCES += src/intrcatch.c
78
79## BARRIER_C_FILES
80librtems_a_SOURCES += src/barrier.c
81librtems_a_SOURCES += src/barriercreate.c
82librtems_a_SOURCES += src/barrierdelete.c
83librtems_a_SOURCES += src/barrierident.c
84librtems_a_SOURCES += src/barrierrelease.c
85librtems_a_SOURCES += src/barrierwait.c
86
87## CLOCK_C_FILES
88librtems_a_SOURCES += src/clockgetsecondssinceepoch.c
89librtems_a_SOURCES += src/clockgettickspersecond.c
90librtems_a_SOURCES += src/clockgettod.c
91librtems_a_SOURCES += src/clockgettodtimeval.c
92librtems_a_SOURCES += src/clockgetuptime.c
93librtems_a_SOURCES += src/clockgetuptimetimeval.c
94librtems_a_SOURCES += src/clockgetuptimenanoseconds.c
95librtems_a_SOURCES += src/clockset.c
96librtems_a_SOURCES += src/clocktick.c
97librtems_a_SOURCES += src/clocktodtoseconds.c
98librtems_a_SOURCES += src/clocktodvalidate.c
99
100## TIMER_C_FILES
101librtems_a_SOURCES += src/rtemstimer.c
102librtems_a_SOURCES += src/timercancel.c
103librtems_a_SOURCES += src/timercreate.c
104librtems_a_SOURCES += src/timerdelete.c
105librtems_a_SOURCES += src/timerfireafter.c
106librtems_a_SOURCES += src/timerfirewhen.c
107librtems_a_SOURCES += src/timergetinfo.c
108librtems_a_SOURCES += src/timerident.c
109librtems_a_SOURCES += src/timerreset.c
110librtems_a_SOURCES += src/timerserver.c
111librtems_a_SOURCES += src/timerserverfireafter.c
112librtems_a_SOURCES += src/timerserverfirewhen.c
113
114## MESSAGE_QUEUE_C_FILES
115librtems_a_SOURCES += src/msg.c
116librtems_a_SOURCES += src/msgqbroadcast.c
117librtems_a_SOURCES += src/msgqcreate.c
118librtems_a_SOURCES += src/msgqdelete.c
119librtems_a_SOURCES += src/msgqflush.c
120librtems_a_SOURCES += src/msgqgetnumberpending.c
121librtems_a_SOURCES += src/msgqident.c
122librtems_a_SOURCES += src/msgqreceive.c
123librtems_a_SOURCES += src/msgqsend.c
124librtems_a_SOURCES += src/msgqurgent.c
125
126## SEMAPHORE_C_FILES
127librtems_a_SOURCES += src/sem.c
128librtems_a_SOURCES += src/semcreate.c
129librtems_a_SOURCES += src/semdelete.c
130librtems_a_SOURCES += src/semident.c
131librtems_a_SOURCES += src/semobtain.c
132librtems_a_SOURCES += src/semrelease.c
133librtems_a_SOURCES += src/semflush.c
134librtems_a_SOURCES += src/semsetpriority.c
135
136## EVENT_C_FILES
137librtems_a_SOURCES += src/eventreceive.c
138librtems_a_SOURCES += src/eventseize.c
139librtems_a_SOURCES += src/eventsend.c
140librtems_a_SOURCES += src/eventsurrender.c
141librtems_a_SOURCES += src/systemeventsend.c
142librtems_a_SOURCES += src/systemeventreceive.c
143
144## SIGNAL_C_FILES
145librtems_a_SOURCES += src/signalcatch.c
146librtems_a_SOURCES += src/signalsend.c
147
148## REGION_C_FILES
149librtems_a_SOURCES += src/region.c
150librtems_a_SOURCES += src/regioncreate.c
151librtems_a_SOURCES += src/regiondelete.c
152librtems_a_SOURCES += src/regionextend.c
153librtems_a_SOURCES += src/regiongetsegment.c
154librtems_a_SOURCES += src/regiongetsegmentsize.c
155librtems_a_SOURCES += src/regionident.c
156librtems_a_SOURCES += src/regionreturnsegment.c
157librtems_a_SOURCES += src/regiongetinfo.c
158librtems_a_SOURCES += src/regiongetfreeinfo.c
159librtems_a_SOURCES += src/regionresizesegment.c
160librtems_a_SOURCES += src/regionprocessqueue.c
161
162## PARTITION_C_FILES
163librtems_a_SOURCES += src/part.c
164librtems_a_SOURCES += src/partcreate.c
165librtems_a_SOURCES += src/partdelete.c
166librtems_a_SOURCES += src/partgetbuffer.c
167librtems_a_SOURCES += src/partident.c
168librtems_a_SOURCES += src/partreturnbuffer.c
169
170## DPMEM_C_FILES
171librtems_a_SOURCES += src/dpmem.c
172librtems_a_SOURCES += src/dpmemcreate.c
173librtems_a_SOURCES += src/dpmemdelete.c
174librtems_a_SOURCES += src/dpmemexternal2internal.c
175librtems_a_SOURCES += src/dpmemident.c
176librtems_a_SOURCES += src/dpmeminternal2external.c
177
178## WORKSPACE_FILES
179librtems_a_SOURCES += src/workspace.c
180librtems_a_SOURCES += src/workspacegreedy.c
181
182librtems_a_SOURCES += src/modes.c
183
184librtems_a_SOURCES += src/status.c
185librtems_a_SOURCES += src/statustext.c
186
187librtems_a_SOURCES += src/getcurrentprocessor.c
188librtems_a_SOURCES += src/getprocessorcount.c
189
190if HAS_MP
191# We only build multiprocessing related files if HAS_MP was defined
192librtems_a_SOURCES += src/eventmp.c
193librtems_a_SOURCES += src/mp.c
194librtems_a_SOURCES += src/msgmp.c
195librtems_a_SOURCES += src/partmp.c
196librtems_a_SOURCES += src/semmp.c
197librtems_a_SOURCES += src/signalmp.c
198librtems_a_SOURCES += src/taskmp.c
199endif
200
201include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.