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

4.11
Last change on this file since c6e21ee1 was c6e21ee1, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 24, 2013 at 11:12:38 AM

score: Create scheduler implementation header

Move implementation specific parts of scheduler.h and scheduler.inl into
new header file schedulerimpl.h. The scheduler.h contains now only the
application visible API.

  • Property mode set to 100644
File size: 13.5 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4SUBDIRS = cpu
5
6## include
7
8include_rtemsdir = $(includedir)/rtems
9
10include_rtems_HEADERS = include/rtems/debug.h
11include_rtems_HEADERS += include/rtems/system.h
12include_rtems_HEADERS += include/rtems/seterr.h
13include_rtems_HEADERS += include/rtems/bspsmp.h
14
15include_rtems_scoredir = $(includedir)/rtems/score
16
17include_rtems_score_HEADERS = include/rtems/score/address.h
18include_rtems_score_HEADERS += include/rtems/score/apiext.h
19include_rtems_score_HEADERS += include/rtems/score/apimutex.h
20include_rtems_score_HEADERS += include/rtems/score/bitfield.h
21include_rtems_score_HEADERS += include/rtems/score/chain.h
22include_rtems_score_HEADERS += include/rtems/score/chainimpl.h
23include_rtems_score_HEADERS += include/rtems/score/context.h
24include_rtems_score_HEADERS += include/rtems/score/copyrt.h
25include_rtems_score_HEADERS += include/rtems/score/corebarrier.h
26include_rtems_score_HEADERS += include/rtems/score/corebarrierimpl.h
27include_rtems_score_HEADERS += include/rtems/score/coremsg.h
28include_rtems_score_HEADERS += include/rtems/score/coremsgimpl.h
29include_rtems_score_HEADERS += include/rtems/score/coremutex.h
30include_rtems_score_HEADERS += include/rtems/score/coremuteximpl.h
31include_rtems_score_HEADERS += include/rtems/score/coresem.h
32include_rtems_score_HEADERS += include/rtems/score/coresemimpl.h
33include_rtems_score_HEADERS += include/rtems/score/heap.h
34include_rtems_score_HEADERS += include/rtems/score/heapimpl.h
35include_rtems_score_HEADERS += include/rtems/score/protectedheap.h
36include_rtems_score_HEADERS += include/rtems/score/interr.h
37include_rtems_score_HEADERS += include/rtems/score/isr.h
38include_rtems_score_HEADERS += include/rtems/score/isrlevel.h
39include_rtems_score_HEADERS += include/rtems/score/freechain.h
40include_rtems_score_HEADERS += include/rtems/score/object.h
41include_rtems_score_HEADERS += include/rtems/score/percpu.h
42include_rtems_score_HEADERS += include/rtems/score/priority.h
43include_rtems_score_HEADERS += include/rtems/score/prioritybitmap.h
44include_rtems_score_HEADERS += include/rtems/score/rbtree.h
45include_rtems_score_HEADERS += include/rtems/score/rbtreeimpl.h
46include_rtems_score_HEADERS += include/rtems/score/scheduler.h
47include_rtems_score_HEADERS += include/rtems/score/schedulerimpl.h
48include_rtems_score_HEADERS += include/rtems/score/schedulercbs.h
49include_rtems_score_HEADERS += include/rtems/score/scheduleredf.h
50include_rtems_score_HEADERS += include/rtems/score/schedulerpriority.h
51include_rtems_score_HEADERS += include/rtems/score/schedulerpriorityimpl.h
52include_rtems_score_HEADERS += include/rtems/score/schedulersimple.h
53include_rtems_score_HEADERS += include/rtems/score/schedulersimpleimpl.h
54include_rtems_score_HEADERS += include/rtems/score/smp.h
55include_rtems_score_HEADERS += include/rtems/score/smplock.h
56include_rtems_score_HEADERS += include/rtems/score/stack.h
57include_rtems_score_HEADERS += include/rtems/score/stackimpl.h
58include_rtems_score_HEADERS += include/rtems/score/states.h
59include_rtems_score_HEADERS += include/rtems/score/sysstate.h
60include_rtems_score_HEADERS += include/rtems/score/thread.h
61include_rtems_score_HEADERS += include/rtems/score/threaddispatch.h
62include_rtems_score_HEADERS += include/rtems/score/threadq.h
63include_rtems_score_HEADERS += include/rtems/score/threadsync.h
64include_rtems_score_HEADERS += include/rtems/score/timespec.h
65include_rtems_score_HEADERS += include/rtems/score/timestamp.h
66include_rtems_score_HEADERS += include/rtems/score/timestamp64.h
67include_rtems_score_HEADERS += include/rtems/score/tod.h
68include_rtems_score_HEADERS += include/rtems/score/tqdata.h
69include_rtems_score_HEADERS += include/rtems/score/userext.h
70include_rtems_score_HEADERS += include/rtems/score/userextimpl.h
71include_rtems_score_HEADERS += include/rtems/score/watchdog.h
72include_rtems_score_HEADERS += include/rtems/score/watchdogimpl.h
73include_rtems_score_HEADERS += include/rtems/score/wkspace.h
74include_rtems_score_HEADERS += include/rtems/score/cpuopts.h
75include_rtems_score_HEADERS += include/rtems/score/basedefs.h
76if ATOMIC
77include_rtems_score_HEADERS += include/rtems/score/atomic.h
78include_rtems_score_HEADERS += include/rtems/score/cpustdatomic.h
79endif
80
81if HAS_PTHREADS
82include_rtems_score_HEADERS += include/rtems/score/corespinlock.h
83include_rtems_score_HEADERS += include/rtems/score/corespinlockimpl.h
84include_rtems_score_HEADERS += include/rtems/score/corerwlock.h
85include_rtems_score_HEADERS += include/rtems/score/corerwlockimpl.h
86endif
87
88if HAS_MP
89# We only build multiprocessing related files if HAS_MP was defined
90include_rtems_score_HEADERS += include/rtems/score/mpci.h
91include_rtems_score_HEADERS += include/rtems/score/mppkt.h
92include_rtems_score_HEADERS += include/rtems/score/objectmp.h
93include_rtems_score_HEADERS += include/rtems/score/threadmp.h
94endif
95
96if HAS_SMP
97include_rtems_score_HEADERS += include/rtems/score/schedulersimplesmp.h
98endif
99
100## inline
101include_rtems_score_HEADERS += inline/rtems/score/object.inl
102include_rtems_score_HEADERS += inline/rtems/score/prioritybitmap.inl
103include_rtems_score_HEADERS += inline/rtems/score/states.inl
104include_rtems_score_HEADERS += inline/rtems/score/thread.inl
105include_rtems_score_HEADERS += inline/rtems/score/threadq.inl
106include_rtems_score_HEADERS += inline/rtems/score/tod.inl
107include_rtems_score_HEADERS += inline/rtems/score/tqdata.inl
108
109if HAS_MP
110## We only build multiprocessing related files if HAS_MP was defined
111include_rtems_score_HEADERS += inline/rtems/score/mppkt.inl
112include_rtems_score_HEADERS += inline/rtems/score/objectmp.inl
113include_rtems_score_HEADERS += inline/rtems/score/threadmp.inl
114endif
115
116## src
117
118AM_CPPFLAGS += -D__RTEMS_INSIDE__
119
120noinst_LIBRARIES = libscore.a
121libscore_a_SOURCES =
122libscore_a_CPPFLAGS = $(AM_CPPFLAGS)
123
124# We only build multiprocessing related files if HAS_MP was defined
125if HAS_MP
126libscore_a_SOURCES += src/mpci.c src/objectmp.c src/threadmp.c
127endif
128
129if HAS_SMP
130libscore_a_SOURCES += src/isrsmp.c
131libscore_a_SOURCES += src/schedulersimplesmp.c
132libscore_a_SOURCES += src/smp.c
133endif
134
135## CORE_APIMUTEX_C_FILES
136libscore_a_SOURCES += src/apimutex.c src/apimutexallocate.c \
137    src/apimutexlock.c src/apimutexunlock.c
138
139## CORE_BARRIER_C_FILES
140libscore_a_SOURCES += src/corebarrier.c src/corebarrierrelease.c \
141    src/corebarrierwait.c
142
143## CORE_MESSAGE_QUEUE_C_FILES
144libscore_a_SOURCES += src/coremsg.c src/coremsgbroadcast.c \
145    src/coremsgclose.c src/coremsgflush.c src/coremsgflushwait.c \
146    src/coremsginsert.c src/coremsgflushsupp.c src/coremsgseize.c \
147    src/coremsgsubmit.c
148
149## CORE_MUTEX_C_FILES
150libscore_a_SOURCES += src/coremutex.c src/coremutexflush.c \
151    src/coremutexseize.c src/coremutexsurrender.c \
152    src/coremutexseizeintr.c
153
154## CORE_PERCPU_C_FILES
155libscore_a_SOURCES += src/percpu.c
156libscore_a_SOURCES += src/percpuasm.c
157
158## CORE_RWLOCK_C_FILES
159if HAS_PTHREADS
160libscore_a_SOURCES += src/corerwlock.c src/corerwlockobtainread.c \
161    src/corerwlockobtainwrite.c src/corerwlockrelease.c src/corerwlocktimeout.c
162endif
163
164## CORE_SEMAPHORE_C_FILES
165libscore_a_SOURCES += src/coresem.c src/coresemflush.c src/coresemseize.c \
166    src/coresemsurrender.c
167
168## CORE_SPINLOCK_C_FILES
169if HAS_PTHREADS
170libscore_a_SOURCES += src/corespinlock.c src/corespinlockrelease.c \
171    src/corespinlockwait.c
172endif
173
174## HEAP_C_FILES
175libscore_a_SOURCES += src/heap.c src/heapallocate.c src/heapextend.c \
176    src/heapfree.c src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \
177    src/heapgetfreeinfo.c src/heapresizeblock.c src/heapiterate.c \
178    src/heapgreedy.c src/heapnoextend.c
179
180## OBJECT_C_FILES
181libscore_a_SOURCES += src/objectallocate.c src/objectclose.c \
182    src/objectextendinformation.c src/objectfree.c src/objectget.c \
183    src/objectgetisr.c src/objectgetnext.c src/objectinitializeinformation.c \
184    src/objectnametoid.c src/objectnametoidstring.c \
185    src/objectshrinkinformation.c src/objectgetnoprotection.c \
186    src/objectidtoname.c src/objectgetnameasstring.c src/objectsetname.c \
187    src/objectgetinfo.c src/objectgetinfoid.c src/objectapimaximumclass.c \
188    src/objectnamespaceremove.c \
189    src/objectactivecount.c
190
191## SCHEDULER_C_FILES
192libscore_a_SOURCES += src/scheduler.c
193libscore_a_SOURCES += src/schedulerdefaulttick.c
194libscore_a_SOURCES += src/schedulerdefaultstartidle.c
195
196## SCHEDULERPRIORITY_C_FILES
197libscore_a_SOURCES += src/schedulerpriority.c \
198    src/schedulerpriorityallocate.c \
199    src/schedulerpriorityblock.c \
200    src/schedulerpriorityenqueue.c \
201    src/schedulerpriorityenqueuefirst.c \
202    src/schedulerpriorityextract.c \
203    src/schedulerpriorityfree.c \
204    src/schedulerpriorityprioritycompare.c \
205    src/schedulerpriorityreleasejob.c \
206    src/schedulerpriorityschedule.c \
207    src/schedulerpriorityunblock.c \
208    src/schedulerpriorityupdate.c \
209    src/schedulerpriorityyield.c
210
211## SCHEDULERSIMPLE_C_FILES
212libscore_a_SOURCES += src/schedulersimple.c \
213    src/schedulersimpleblock.c \
214    src/schedulersimpleenqueue.c \
215    src/schedulersimpleenqueuefirst.c \
216    src/schedulersimpleextract.c \
217    src/schedulersimplereadyqueueenqueue.c \
218    src/schedulersimplereadyqueueenqueuefirst.c \
219    src/schedulersimpleschedule.c \
220    src/schedulersimpleunblock.c \
221    src/schedulersimpleyield.c
222
223## SCHEDULEREDF_C_FILES
224libscore_a_SOURCES += src/scheduleredf.c \
225    src/scheduleredfallocate.c \
226    src/scheduleredfblock.c \
227    src/scheduleredfenqueue.c \
228    src/scheduleredfenqueuefirst.c \
229    src/scheduleredfextract.c \
230    src/scheduleredffree.c \
231    src/scheduleredfprioritycompare.c \
232    src/scheduleredfreleasejob.c \
233    src/scheduleredfschedule.c \
234    src/scheduleredfunblock.c \
235    src/scheduleredfupdate.c \
236    src/scheduleredfyield.c
237
238## SCHEDULERCBS_C_FILES
239libscore_a_SOURCES += src/schedulercbs.c \
240    src/schedulercbsallocate.c \
241    src/schedulercbsattachthread.c \
242    src/schedulercbscleanup.c \
243    src/schedulercbscreateserver.c \
244    src/schedulercbsdestroyserver.c \
245    src/schedulercbsdetachthread.c \
246    src/schedulercbsgetapprovedbudget.c \
247    src/schedulercbsgetexecutiontime.c \
248    src/schedulercbsgetparameters.c \
249    src/schedulercbsgetremainingbudget.c \
250    src/schedulercbsgetserverid.c \
251    src/schedulercbssetparameters.c \
252    src/schedulercbsreleasejob.c \
253    src/schedulercbsunblock.c
254
255## PROTECTED_HEAP_C_FILES
256libscore_a_SOURCES += src/pheapallocate.c \
257    src/pheapextend.c src/pheapfree.c src/pheapgetsize.c \
258    src/pheapgetblocksize.c src/pheapgetfreeinfo.c src/pheapgetinfo.c \
259    src/pheapinit.c src/pheapresizeblock.c src/pheapwalk.c src/pheapiterate.c
260
261## FREECHAIN_C_FILES
262libscore_a_SOURCES += src/freechain.c
263
264## RBTREE_C_FILES
265libscore_a_SOURCES += src/rbtree.c \
266    src/rbtreeextract.c src/rbtreefind.c src/rbtreefindheader.c \
267    src/rbtreeget.c src/rbtreeinsert.c src/rbtreeiterate.c src/rbtreenext.c
268
269## THREAD_C_FILES
270libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
271    src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
272    src/threaddelayended.c src/threaddispatch.c \
273    src/threadenabledispatch.c src/threaddisabledispatch.c \
274    src/threadget.c src/threadhandler.c src/threadinitialize.c \
275    src/threadloadenv.c src/threadready.c src/threadreset.c \
276    src/threadrestart.c src/threadsetpriority.c \
277    src/threadsetstate.c src/threadsettransient.c \
278    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
279    src/threadstartmultitasking.c src/iterateoverthreads.c \
280    src/threadblockingoperationcancel.c
281   
282if HAS_SMP
283libscore_a_SOURCES += src/threaddispatchdisablelevel.c
284endif
285
286## THREADQ_C_FILES
287libscore_a_SOURCES += src/threadq.c src/threadqdequeue.c \
288    src/threadqdequeuefifo.c src/threadqdequeuepriority.c \
289    src/threadqenqueue.c src/threadqenqueuefifo.c \
290    src/threadqenqueuepriority.c src/threadqextract.c \
291    src/threadqextractfifo.c src/threadqextractpriority.c \
292    src/threadqextractwithproxy.c src/threadqfirst.c src/threadqfirstfifo.c \
293    src/threadqfirstpriority.c src/threadqflush.c src/threadqrequeue.c \
294    src/threadqprocesstimeout.c src/threadqtimeout.c
295
296## TIMESPEC_C_FILES
297libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \
298    src/timespecisvalid.c src/timespeclessthan.c \
299    src/timespecsubtract.c src/timespectoticks.c src/timespecdivide.c \
300    src/timespecdividebyinteger.c
301
302## TIMESTAMP_INT64_C_FILES
303libscore_a_SOURCES += src/ts64addto.c src/ts64dividebyinteger.c \
304    src/ts64divide.c src/ts64equalto.c \
305    src/ts64getnanoseconds.c src/ts64getseconds.c \
306    src/ts64lessthan.c \
307    src/ts64set.c src/ts64settozero.c src/ts64subtract.c \
308    src/ts64toticks.c src/ts64totimespec.c src/ts64totimeval.c
309
310## TOD_C_FILES
311libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \
312    src/coretodgetuptimetimespec.c src/coretodtickle.c \
313    src/coretodmsecstoticks.c src/coretodtickspersec.c src/coretodusectoticks.c
314
315## WATCHDOG_C_FILES
316libscore_a_SOURCES += src/watchdog.c src/watchdogadjust.c \
317    src/watchdogadjusttochain.c src/watchdoginsert.c src/watchdogremove.c \
318    src/watchdogtickle.c src/watchdogreport.c src/watchdogreportchain.c \
319    src/watchdognanoseconds.c
320
321## USEREXT_C_FILES
322libscore_a_SOURCES += src/userextaddset.c \
323    src/userext.c src/userextremoveset.c src/userextiterate.c
324
325## STD_C_FILES
326libscore_a_SOURCES += src/apiext.c src/chain.c src/chainappend.c \
327    src/chainextract.c src/chainget.c src/chaininsert.c \
328    src/chainappendempty.c src/chainprependempty.c src/chaingetempty.c \
329    src/chainnodecount.c \
330    src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
331
332EXTRA_DIST = src/Unlimited.txt
333
334DISTCLEANFILES = include/rtems/score/cpuopts.h
335
336include $(srcdir)/preinstall.am
337include $(top_srcdir)/automake/subdirs.am
338include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.