source: rtems/cpukit/score/Makefile.am @ 1082798

Last change on this file since 1082798 was 1082798, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 23, 2017 at 11:30:44 AM

score: Add _IO_Printf() and _IO_Vprintf()

The previous vprintk() implementation had a questionable licence header,
lacks support for the 'z' and 'j' format specifiers, is not robust
against invalid format specifiers, uses a global variable for output.
Replace it with a stripped down version of the FreeBSD kernel kvprintf()
function.

The new implementation allows a low overhead rtems_snprintf() if
necessary.

Update #3199.
Close #3216.

  • Property mode set to 100644
File size: 14.9 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4_SUBDIRS = cpu
5
6## include
7
8include_sysdir = $(includedir)/sys
9
10include_sys_HEADERS =
11include_sys_HEADERS += include/sys/_ffcounter.h
12include_sys_HEADERS += include/sys/timeffc.h
13include_sys_HEADERS += include/sys/timepps.h
14include_sys_HEADERS += include/sys/timetc.h
15include_sys_HEADERS += include/sys/timex.h
16
17include_rtemsdir = $(includedir)/rtems
18
19include_rtems_HEADERS =
20include_rtems_HEADERS += include/rtems/linkersets.h
21include_rtems_HEADERS += include/rtems/sysinit.h
22include_rtems_HEADERS += include/rtems/system.h
23include_rtems_HEADERS += include/rtems/seterr.h
24
25include_rtems_scoredir = $(includedir)/rtems/score
26
27include_rtems_score_HEADERS = include/rtems/score/address.h
28include_rtems_score_HEADERS += include/rtems/score/apimutex.h
29include_rtems_score_HEADERS += include/rtems/score/assert.h
30include_rtems_score_HEADERS += include/rtems/score/atomic.h
31include_rtems_score_HEADERS += include/rtems/score/chain.h
32include_rtems_score_HEADERS += include/rtems/score/chainimpl.h
33include_rtems_score_HEADERS += include/rtems/score/context.h
34include_rtems_score_HEADERS += include/rtems/score/copyrt.h
35include_rtems_score_HEADERS += include/rtems/score/corebarrier.h
36include_rtems_score_HEADERS += include/rtems/score/corebarrierimpl.h
37include_rtems_score_HEADERS += include/rtems/score/coremsg.h
38include_rtems_score_HEADERS += include/rtems/score/coremsgimpl.h
39include_rtems_score_HEADERS += include/rtems/score/coremutex.h
40include_rtems_score_HEADERS += include/rtems/score/coremuteximpl.h
41include_rtems_score_HEADERS += include/rtems/score/corerwlockimpl.h
42include_rtems_score_HEADERS += include/rtems/score/coresem.h
43include_rtems_score_HEADERS += include/rtems/score/coresemimpl.h
44include_rtems_score_HEADERS += include/rtems/score/cpustdatomic.h
45include_rtems_score_HEADERS += include/rtems/score/heap.h
46include_rtems_score_HEADERS += include/rtems/score/heapimpl.h
47include_rtems_score_HEADERS += include/rtems/score/protectedheap.h
48include_rtems_score_HEADERS += include/rtems/score/interr.h
49include_rtems_score_HEADERS += include/rtems/score/io.h
50include_rtems_score_HEADERS += include/rtems/score/isr.h
51include_rtems_score_HEADERS += include/rtems/score/isrlevel.h
52include_rtems_score_HEADERS += include/rtems/score/isrlock.h
53include_rtems_score_HEADERS += include/rtems/score/freechain.h
54include_rtems_score_HEADERS += include/rtems/score/mrsp.h
55include_rtems_score_HEADERS += include/rtems/score/mrspimpl.h
56include_rtems_score_HEADERS += include/rtems/score/muteximpl.h
57include_rtems_score_HEADERS += include/rtems/score/object.h
58include_rtems_score_HEADERS += include/rtems/score/objectimpl.h
59include_rtems_score_HEADERS += include/rtems/score/onceimpl.h
60include_rtems_score_HEADERS += include/rtems/score/percpu.h
61include_rtems_score_HEADERS += include/rtems/score/priority.h
62include_rtems_score_HEADERS += include/rtems/score/priorityimpl.h
63include_rtems_score_HEADERS += include/rtems/score/prioritybitmap.h
64include_rtems_score_HEADERS += include/rtems/score/prioritybitmapimpl.h
65include_rtems_score_HEADERS += include/rtems/score/profiling.h
66include_rtems_score_HEADERS += include/rtems/score/processormask.h
67include_rtems_score_HEADERS += include/rtems/score/rbtree.h
68include_rtems_score_HEADERS += include/rtems/score/rbtreeimpl.h
69include_rtems_score_HEADERS += include/rtems/score/scheduler.h
70include_rtems_score_HEADERS += include/rtems/score/schedulerimpl.h
71include_rtems_score_HEADERS += include/rtems/score/schedulercbs.h
72include_rtems_score_HEADERS += include/rtems/score/schedulercbsimpl.h
73include_rtems_score_HEADERS += include/rtems/score/scheduleredf.h
74include_rtems_score_HEADERS += include/rtems/score/scheduleredfimpl.h
75include_rtems_score_HEADERS += include/rtems/score/schedulernode.h
76include_rtems_score_HEADERS += include/rtems/score/schedulernodeimpl.h
77include_rtems_score_HEADERS += include/rtems/score/schedulerpriority.h
78include_rtems_score_HEADERS += include/rtems/score/schedulerpriorityimpl.h
79include_rtems_score_HEADERS += include/rtems/score/schedulerprioritysmp.h
80include_rtems_score_HEADERS += include/rtems/score/schedulersimple.h
81include_rtems_score_HEADERS += include/rtems/score/schedulersimpleimpl.h
82include_rtems_score_HEADERS += include/rtems/score/schedulersmp.h
83include_rtems_score_HEADERS += include/rtems/score/schedulersmpimpl.h
84include_rtems_score_HEADERS += include/rtems/score/semaphoreimpl.h
85include_rtems_score_HEADERS += include/rtems/score/smp.h
86include_rtems_score_HEADERS += include/rtems/score/smpbarrier.h
87include_rtems_score_HEADERS += include/rtems/score/smplock.h
88include_rtems_score_HEADERS += include/rtems/score/smplockseq.h
89include_rtems_score_HEADERS += include/rtems/score/smpimpl.h
90include_rtems_score_HEADERS += include/rtems/score/stack.h
91include_rtems_score_HEADERS += include/rtems/score/stackimpl.h
92include_rtems_score_HEADERS += include/rtems/score/states.h
93include_rtems_score_HEADERS += include/rtems/score/statesimpl.h
94include_rtems_score_HEADERS += include/rtems/score/status.h
95include_rtems_score_HEADERS += include/rtems/score/sysstate.h
96include_rtems_score_HEADERS += include/rtems/score/thread.h
97include_rtems_score_HEADERS += include/rtems/score/threadimpl.h
98include_rtems_score_HEADERS += include/rtems/score/threaddispatch.h
99include_rtems_score_HEADERS += include/rtems/score/threadq.h
100include_rtems_score_HEADERS += include/rtems/score/threadqimpl.h
101include_rtems_score_HEADERS += include/rtems/score/timespec.h
102include_rtems_score_HEADERS += include/rtems/score/timestamp.h
103include_rtems_score_HEADERS += include/rtems/score/timecounter.h
104include_rtems_score_HEADERS += include/rtems/score/timecounterimpl.h
105include_rtems_score_HEADERS += include/rtems/score/tls.h
106include_rtems_score_HEADERS += include/rtems/score/tod.h
107include_rtems_score_HEADERS += include/rtems/score/todimpl.h
108include_rtems_score_HEADERS += include/rtems/score/userext.h
109include_rtems_score_HEADERS += include/rtems/score/userextimpl.h
110include_rtems_score_HEADERS += include/rtems/score/watchdog.h
111include_rtems_score_HEADERS += include/rtems/score/watchdogimpl.h
112include_rtems_score_HEADERS += include/rtems/score/wkspace.h
113include_rtems_score_HEADERS += include/rtems/score/cpuopts.h
114include_rtems_score_HEADERS += include/rtems/score/basedefs.h
115
116if HAS_MP
117# We only build multiprocessing related files if HAS_MP was defined
118include_rtems_score_HEADERS += include/rtems/score/mpci.h
119include_rtems_score_HEADERS += include/rtems/score/mpciimpl.h
120include_rtems_score_HEADERS += include/rtems/score/mppkt.h
121include_rtems_score_HEADERS += include/rtems/score/objectmp.h
122include_rtems_score_HEADERS += include/rtems/score/threadmp.h
123endif
124
125if HAS_SMP
126include_rtems_score_HEADERS += include/rtems/score/scheduleredfsmp.h
127include_rtems_score_HEADERS += include/rtems/score/schedulerprioritysmpimpl.h
128include_rtems_score_HEADERS += include/rtems/score/schedulerpriorityaffinitysmp.h
129include_rtems_score_HEADERS += include/rtems/score/schedulersimplesmp.h
130include_rtems_score_HEADERS += include/rtems/score/schedulerstrongapa.h
131include_rtems_score_HEADERS += include/rtems/score/smplockmcs.h
132include_rtems_score_HEADERS += include/rtems/score/smplockstats.h
133include_rtems_score_HEADERS += include/rtems/score/smplockticket.h
134endif
135
136## src
137
138noinst_LIBRARIES = libscore.a
139libscore_a_SOURCES =
140libscore_a_CPPFLAGS = $(AM_CPPFLAGS)
141
142# We only build multiprocessing related files if HAS_MP was defined
143if HAS_MP
144libscore_a_SOURCES += src/mpci.c src/objectmp.c src/threadmp.c
145endif
146
147if HAS_SMP
148libscore_a_SOURCES += src/percpustatewait.c
149libscore_a_SOURCES += src/profilingsmplock.c
150libscore_a_SOURCES += src/scheduleredfsmp.c
151libscore_a_SOURCES += src/schedulerpriorityaffinitysmp.c
152libscore_a_SOURCES += src/schedulerprioritysmp.c
153libscore_a_SOURCES += src/schedulersimplesmp.c
154libscore_a_SOURCES += src/schedulerstrongapa.c
155libscore_a_SOURCES += src/smp.c
156libscore_a_SOURCES += src/smplock.c
157libscore_a_SOURCES += src/smpmulticastaction.c
158libscore_a_SOURCES += src/schedulerdefaultaskforhelp.c
159libscore_a_SOURCES += src/schedulerdefaultsetaffinity.c
160libscore_a_SOURCES += src/schedulersmp.c
161libscore_a_SOURCES += src/schedulersmpstartidle.c
162endif
163
164## CORE_APIMUTEX_C_FILES
165libscore_a_SOURCES += src/apimutex.c \
166    src/apimutexlock.c src/apimutexisowner.c src/apimutexunlock.c
167
168## CORE_BARRIER_C_FILES
169libscore_a_SOURCES += src/corebarrier.c src/corebarrierrelease.c \
170    src/corebarrierwait.c
171
172## CORE_MESSAGE_QUEUE_C_FILES
173libscore_a_SOURCES += src/coremsg.c src/coremsgbroadcast.c \
174    src/coremsgclose.c src/coremsgflush.c src/coremsgflushwait.c \
175    src/coremsginsert.c src/coremsgseize.c \
176    src/coremsgsubmit.c
177
178## CORE_MUTEX_C_FILES
179libscore_a_SOURCES += src/coremutexseize.c
180
181## CORE_PERCPU_C_FILES
182libscore_a_SOURCES += src/percpu.c
183libscore_a_SOURCES += src/percpuasm.c
184
185## CORE_RWLOCK_C_FILES
186libscore_a_SOURCES += src/corerwlock.c src/corerwlockobtainread.c \
187    src/corerwlockobtainwrite.c src/corerwlockrelease.c
188
189## CORE_SEMAPHORE_C_FILES
190libscore_a_SOURCES += src/coresem.c
191
192## HEAP_C_FILES
193libscore_a_SOURCES += src/heap.c src/heapallocate.c src/heapextend.c \
194    src/heapfree.c src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \
195    src/heapgetfreeinfo.c src/heapresizeblock.c src/heapiterate.c \
196    src/heapgreedy.c src/heapnoextend.c
197
198## OBJECT_C_FILES
199libscore_a_SOURCES += src/objectallocate.c src/objectclose.c \
200    src/objectextendinformation.c src/objectfree.c \
201    src/objectgetnext.c src/objectinitializeinformation.c \
202    src/objectnametoid.c src/objectnametoidstring.c \
203    src/objectshrinkinformation.c src/objectgetnoprotection.c \
204    src/objectidtoname.c src/objectgetnameasstring.c src/objectsetname.c \
205    src/objectgetinfo.c src/objectgetinfoid.c src/objectapimaximumclass.c \
206    src/objectnamespaceremove.c \
207    src/objectactivecount.c
208libscore_a_SOURCES += src/objectgetlocal.c
209
210## SCHEDULER_C_FILES
211libscore_a_SOURCES += src/log2table.c
212libscore_a_SOURCES += src/scheduler.c
213libscore_a_SOURCES += src/schedulergetaffinity.c
214libscore_a_SOURCES += src/schedulersetaffinity.c
215libscore_a_SOURCES += src/schedulerdefaultmappriority.c
216libscore_a_SOURCES += src/schedulerdefaultnodedestroy.c
217libscore_a_SOURCES += src/schedulerdefaultnodeinit.c
218libscore_a_SOURCES += src/schedulerdefaultreleasejob.c
219libscore_a_SOURCES += src/schedulerdefaultschedule.c
220libscore_a_SOURCES += src/schedulerdefaultstartidle.c
221libscore_a_SOURCES += src/schedulerdefaulttick.c
222
223## SCHEDULERPRIORITY_C_FILES
224libscore_a_SOURCES += src/schedulerpriority.c \
225    src/schedulerpriorityblock.c \
226    src/schedulerprioritychangepriority.c \
227    src/schedulerpriorityschedule.c \
228    src/schedulerpriorityunblock.c \
229    src/schedulerpriorityyield.c
230
231## SCHEDULERSIMPLE_C_FILES
232libscore_a_SOURCES += src/schedulersimple.c \
233    src/schedulersimpleblock.c \
234    src/schedulersimplechangepriority.c \
235    src/schedulersimpleschedule.c \
236    src/schedulersimpleunblock.c \
237    src/schedulersimpleyield.c
238
239## SCHEDULEREDF_C_FILES
240libscore_a_SOURCES += src/scheduleredf.c \
241    src/scheduleredfnodeinit.c \
242    src/scheduleredfblock.c \
243    src/scheduleredfchangepriority.c \
244    src/scheduleredfreleasejob.c \
245    src/scheduleredfschedule.c \
246    src/scheduleredfunblock.c \
247    src/scheduleredfyield.c
248
249## SCHEDULERCBS_C_FILES
250libscore_a_SOURCES += src/schedulercbs.c \
251    src/schedulercbsnodeinit.c \
252    src/schedulercbsattachthread.c \
253    src/schedulercbscleanup.c \
254    src/schedulercbscreateserver.c \
255    src/schedulercbsdestroyserver.c \
256    src/schedulercbsdetachthread.c \
257    src/schedulercbsgetapprovedbudget.c \
258    src/schedulercbsgetexecutiontime.c \
259    src/schedulercbsgetparameters.c \
260    src/schedulercbsgetremainingbudget.c \
261    src/schedulercbsgetserverid.c \
262    src/schedulercbssetparameters.c \
263    src/schedulercbsreleasejob.c \
264    src/schedulercbsunblock.c
265
266## PROTECTED_HEAP_C_FILES
267libscore_a_SOURCES += src/pheapallocate.c \
268    src/pheapextend.c src/pheapfree.c src/pheapgetsize.c \
269    src/pheapgetblocksize.c src/pheapgetfreeinfo.c src/pheapgetinfo.c \
270    src/pheapinit.c src/pheapresizeblock.c src/pheapwalk.c src/pheapiterate.c
271
272## FREECHAIN_C_FILES
273libscore_a_SOURCES += src/freechain.c
274
275## RBTREE_C_FILES
276libscore_a_SOURCES += \
277    src/rbtreeextract.c \
278    src/rbtreeinsert.c src/rbtreeiterate.c src/rbtreenext.c
279libscore_a_SOURCES += src/rbtreereplace.c
280
281## THREAD_C_FILES
282libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
283    src/threadclearstate.c src/threadcreateidle.c \
284    src/threaddispatch.c \
285    src/threadget.c src/threadhandler.c src/threadinitialize.c \
286    src/threadloadenv.c \
287    src/threadrestart.c \
288    src/threadsetstate.c \
289    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
290    src/threadstartmultitasking.c src/iterateoverthreads.c
291libscore_a_SOURCES += src/threadentryadaptoridle.c
292libscore_a_SOURCES += src/threadentryadaptornumeric.c
293libscore_a_SOURCES += src/threadentryadaptorpointer.c
294libscore_a_SOURCES += src/threadgetcputimeused.c
295libscore_a_SOURCES += src/threadglobalconstruction.c
296libscore_a_SOURCES += src/threaditerate.c
297libscore_a_SOURCES += src/threadname.c
298libscore_a_SOURCES += src/threadscheduler.c
299libscore_a_SOURCES += src/threadtimeout.c
300libscore_a_SOURCES += src/threadwaitgetid.c
301libscore_a_SOURCES += src/threadyield.c
302
303## THREADQ_C_FILES
304libscore_a_SOURCES += src/threadq.c \
305    src/threadqenqueue.c \
306    src/threadqextractwithproxy.c src/threadqfirst.c \
307    src/threadqflush.c
308libscore_a_SOURCES += src/threadqops.c
309libscore_a_SOURCES += src/threadqtimeout.c
310
311## TIMESPEC_C_FILES
312libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \
313    src/timespecisvalid.c src/timespeclessthan.c \
314    src/timespecsubtract.c src/timespectoticks.c src/timespecdivide.c \
315    src/timespecdividebyinteger.c src/timespecgetasnanoseconds.c
316
317## TOD_C_FILES
318libscore_a_SOURCES += src/coretod.c src/coretodset.c \
319    src/coretodtickspersec.c \
320    src/coretodadjust.c
321
322## WATCHDOG_C_FILES
323libscore_a_SOURCES += src/watchdoginsert.c
324libscore_a_SOURCES += src/watchdogremove.c
325libscore_a_SOURCES += src/watchdogtick.c
326libscore_a_SOURCES += src/watchdogtickssinceboot.c
327
328## USEREXT_C_FILES
329libscore_a_SOURCES += src/userextaddset.c \
330    src/userext.c src/userextremoveset.c src/userextiterate.c
331
332## STD_C_FILES
333libscore_a_SOURCES += src/chain.c \
334    src/chainnodecount.c \
335    src/debugisthreaddispatchingallowed.c \
336    src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
337libscore_a_SOURCES += src/ioprintf.c
338libscore_a_SOURCES += src/iovprintf.c
339libscore_a_SOURCES += src/isrisinprogress.c
340libscore_a_SOURCES += src/condition.c
341libscore_a_SOURCES += src/debugisownerofallocator.c
342libscore_a_SOURCES += src/futex.c
343libscore_a_SOURCES += src/profilingisrentryexit.c
344libscore_a_SOURCES += src/mutex.c
345libscore_a_SOURCES += src/once.c
346libscore_a_SOURCES += src/sched.c
347libscore_a_SOURCES += src/semaphore.c
348libscore_a_SOURCES += src/smpbarrierwait.c
349libscore_a_SOURCES += src/kern_tc.c
350libscore_a_SOURCES += src/libatomic.c
351libscore_a_SOURCES += src/processormaskcopy.c
352
353EXTRA_DIST = src/Unlimited.txt
354
355DISTCLEANFILES = include/rtems/score/cpuopts.h
356
357include $(srcdir)/preinstall.am
358include $(top_srcdir)/automake/subdirs.am
359include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.