source: rtems/c/src/lib/libcpu/powerpc/Makefile.am @ fbee4ff

4.104.11
Last change on this file since fbee4ff was fbee4ff, checked in by Till Straumann <strauman@…>, on Dec 2, 2009 at 1:33:51 AM

2009-12-01 Till Straumann <strauman@…>

  • Makefile.am, mpc6xx/altivec: new directory implementing support for AltiVec? context saving/restoring.
  • Property mode set to 100644
File size: 14.3 KB
Line 
1#
2# $Id$
3#
4
5ACLOCAL_AMFLAGS = -I ../../../aclocal
6
7include $(top_srcdir)/../../../automake/compile.am
8
9include_rtems_powerpcdir = $(includedir)/rtems/powerpc
10include_rtems_powerpc_HEADERS = rtems/powerpc/cache.h \
11    rtems/powerpc/debugmod.h rtems/powerpc/powerpc.h
12
13include_rtems_scoredir = $(includedir)/rtems/score
14include_libcpudir = $(includedir)/libcpu
15
16include_libcpu_HEADERS = shared/include/powerpc-utility.h
17
18include_bspdir = $(includedir)/bsp
19
20include_bsp_HEADERS =
21
22EXTRA_DIST =
23
24noinst_PROGRAMS = new-exceptions/rtems-cpu.rel
25new_exceptions_rtems_cpu_rel_SOURCES = new-exceptions/cpu.c \
26    new-exceptions/cpu_asm.S
27new_exceptions_rtems_cpu_rel_CPPFLAGS = $(AM_CPPFLAGS)
28new_exceptions_rtems_cpu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
29
30
31if !mpc5xx
32include_bsp_HEADERS += new-exceptions/bspsupport/vectors.h
33
34noinst_PROGRAMS += new-exceptions/exc_bspsupport.rel
35new_exceptions_exc_bspsupport_rel_SOURCES = \
36    new-exceptions/bspsupport/ppc-code-copy.c \
37    new-exceptions/bspsupport/ppc_exc.S \
38    new-exceptions/bspsupport/ppc_exc_naked.S \
39    new-exceptions/bspsupport/ppc_exc_hdl.c \
40    new-exceptions/bspsupport/ppc_exc_initialize.c \
41    new-exceptions/bspsupport/ppc_exc_global_handler.c \
42    new-exceptions/bspsupport/ppc_exc_categories.c \
43    new-exceptions/bspsupport/ppc_exc_address.c \
44    new-exceptions/bspsupport/ppc_exc_prologue.c
45
46new_exceptions_exc_bspsupport_rel_CPPFLAGS = $(AM_CPPFLAGS)
47new_exceptions_exc_bspsupport_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49noinst_PROGRAMS += new-exceptions/irq_bspsupport.rel
50
51new_exceptions_irq_bspsupport_rel_SOURCES = new-exceptions/bspsupport/irq.c
52new_exceptions_irq_bspsupport_rel_CPPFLAGS = $(AM_CPPFLAGS)
53new_exceptions_irq_bspsupport_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54endif
55
56EXTRA_DIST += new-exceptions/bspsupport/vectors.h
57EXTRA_DIST += new-exceptions/bspsupport/irq_supp.h
58EXTRA_DIST += new-exceptions/bspsupport/README
59EXTRA_DIST += new-exceptions/bspsupport/nest_irq_test.c
60EXTRA_DIST += new-exceptions/bspsupport/ppc_exc_test.c
61
62# shared/include
63if shared
64include_libcpu_HEADERS += shared/include/io.h shared/include/mmu.h shared/include/page.h \
65    shared/include/byteorder.h shared/include/pgtable.h
66
67noinst_PROGRAMS += shared/cpuIdent.rel
68shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c shared/include/cpuIdent.h
69shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
70shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72include_libcpu_HEADERS += shared/include/cpuIdent.h
73
74# shared/cache
75noinst_PROGRAMS += shared/cache.rel
76shared_cache_rel_SOURCES = shared/src/cache.c shared/src/cache_.h \
77    ../shared/src/cache_aligned_malloc.c ../shared/src/cache_manager.c \
78    ../shared/include/cache.h
79shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/src
80shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
81
82include_libcpu_HEADERS += ../shared/include/cache.h
83
84# shared/stack
85noinst_PROGRAMS += shared/stack.rel
86shared_stack_rel_SOURCES = shared/src/stack.c shared/include/spr.h shared/src/stackTrace.h
87shared_stack_rel_CPPFLAGS = $(AM_CPPFLAGS)
88shared_stack_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
89
90include_libcpu_HEADERS += shared/include/spr.h
91include_libcpu_HEADERS += shared/src/stackTrace.h
92endif
93
94EXTRA_DIST += ppc403/README ppc403/vectors/README
95if ppc403
96# ppc403/clock
97noinst_PROGRAMS += ppc403/clock.rel
98ppc403_clock_rel_SOURCES = ppc403/clock/clock.c
99ppc403_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
100ppc403_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
101
102# ppc403/console
103noinst_PROGRAMS += ppc403/console.rel
104if ppc405
105ppc403_console_rel_SOURCES = ppc403/console/console405.c
106else
107ppc403_console_rel_SOURCES = ppc403/console/console.c
108endif
109ppc403_console_rel_CPPFLAGS = $(AM_CPPFLAGS)
110ppc403_console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
111
112include_HEADERS =
113shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c
114shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
115shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
116
117# ppc403/timer
118noinst_PROGRAMS += ppc403/timer.rel
119ppc403_timer_rel_SOURCES = ppc403/timer/timer.c
120ppc403_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
121ppc403_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
122
123# ppc403/tty_drv
124if ppc405
125include_HEADERS += ppc403/tty_drv/tty_drv.h
126
127noinst_PROGRAMS += ppc403/tty_drv.rel
128ppc403_tty_drv_rel_SOURCES = ppc403/tty_drv/tty_drv.c ppc403/tty_drv/tty_drv.h
129ppc403_tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS)
130ppc403_tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
131endif
132
133endif # ppc403
134
135if ppc405
136
137## ppc4xx/include
138include_ppc4xxdir = $(includedir)/ppc4xx
139include_ppc4xx_HEADERS = ppc403/include/ppc405gp.h \
140                         ppc403/include/ppc405ex.h
141
142endif # ppc405
143
144
145## mpc5xx
146EXTRA_DIST += mpc5xx/README
147if mpc5xx
148include_mpc5xxdir = $(includedir)/mpc5xx
149
150include_HEADERS = mpc5xx/include/mpc5xx.h
151
152# mpc5xx/clock
153noinst_PROGRAMS += mpc5xx/clock.rel
154mpc5xx_clock_rel_SOURCES = mpc5xx/clock/clock.c
155mpc5xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
156mpc5xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
157
158# mpc5xx/console-generic
159include_mpc5xx_HEADERS = mpc5xx/include/console.h
160
161noinst_PROGRAMS += mpc5xx/console-generic.rel
162mpc5xx_console_generic_rel_SOURCES = mpc5xx/console-generic/console-generic.c
163mpc5xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
164mpc5xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
165
166# mpc5xx/exceptions
167include_libcpu_HEADERS += mpc5xx/exceptions/raw_exception.h
168
169noinst_PROGRAMS += mpc5xx/exceptions.rel
170mpc5xx_exceptions_rel_SOURCES = mpc5xx/exceptions/raw_exception.c
171mpc5xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS)
172mpc5xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
173
174# mpc5xx/irq
175include_libcpu_HEADERS += mpc5xx/irq/irq.h
176
177noinst_PROGRAMS += mpc5xx/irq.rel
178mpc5xx_irq_rel_SOURCES = mpc5xx/irq/irq.c mpc5xx/irq/irq_init.c mpc5xx/irq/irq_asm.S
179mpc5xx_irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
180mpc5xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
181
182# mpc5xx/timer
183noinst_PROGRAMS += mpc5xx/timer.rel
184mpc5xx_timer_rel_SOURCES = mpc5xx/timer/timer.c
185mpc5xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
186mpc5xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
187
188# mpc5xx/vectors
189include_libcpu_HEADERS += mpc5xx/vectors/vectors.h
190
191noinst_PROGRAMS += mpc5xx/vectors.rel
192mpc5xx_vectors_rel_SOURCES = mpc5xx/vectors/vectors_init.c mpc5xx/vectors/vectors.S
193mpc5xx_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
194mpc5xx_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
195endif
196
197if mpc505
198# mpc505/ictrl
199include_HEADERS = mpc505/ictrl/ictrl.h
200
201noinst_PROGRAMS += mpc505/ictrl.rel
202mpc505_ictrl_rel_SOURCES = mpc505/ictrl/ictrl.c
203mpc505_ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS)
204mpc505_ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
205
206# mpc505/timer
207noinst_PROGRAMS += mpc505/timer.rel
208mpc505_timer_rel_SOURCES = mpc505/timer/timer.c
209mpc505_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
210mpc505_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
211
212# mpc505/vector
213noinst_PROGRAMS += mpc505/vectors.rel
214mpc505_vectors_rel_SOURCES = mpc505/vectors/vectors.S
215mpc505_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
216mpc505_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
217endif
218
219if mpc6xx
220
221# mpc6xx/mmu
222include_libcpu_HEADERS += mpc6xx/mmu/bat.h mpc6xx/mmu/pte121.h
223
224noinst_PROGRAMS += mpc6xx/mmu.rel
225mpc6xx_mmu_rel_SOURCES = mpc6xx/mmu/bat.c mpc6xx/mmu/bat.h \
226    mpc6xx/mmu/pte121.c mpc6xx/mmu/pte121.h \
227    mpc6xx/mmu/mmuAsm.S
228mpc6xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
229mpc6xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
230
231# mpc6xx/clock
232include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
233
234noinst_PROGRAMS += mpc6xx/clock.rel
235mpc6xx_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
236mpc6xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
237mpc6xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
238
239# mpc6xx/timer
240noinst_PROGRAMS += mpc6xx/timer.rel
241mpc6xx_timer_rel_SOURCES = mpc6xx/timer/timer.c
242mpc6xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
243mpc6xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
244
245# mpc6xx/altivec
246noinst_PROGRAMS += mpc6xx/altivec.rel
247mpc6xx_altivec_rel_SOURCES = mpc6xx/altivec/vec_sup.c mpc6xx/altivec/vec_sup_asm.S
248mpc6xx_altivec_rel_CPPFLAGS = $(AM_CPPFLAGS)
249mpc6xx_altivec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
250endif
251EXTRA_DIST      += mpc6xx/altivec/README
252
253if e500
254# mpc6xx/clock
255include_libcpu_HEADERS += mpc6xx/clock/c_clock.h
256
257noinst_PROGRAMS += e500/clock.rel
258e500_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
259e500_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
260e500_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
261
262# mpc6xx/timer
263noinst_PROGRAMS += e500/timer.rel
264e500_timer_rel_SOURCES = mpc6xx/timer/timer.c
265e500_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
266e500_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
267
268# e500/mmu
269include_libcpu_HEADERS += e500/mmu/e500_mmu.h
270noinst_PROGRAMS += e500/mmu.rel
271e500_mmu_rel_SOURCES = e500/mmu/mmu.c e500/mmu/e500_mmu.h
272e500_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
273e500_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
274endif
275
276EXTRA_DIST += mpc8xx/README
277if mpc8xx
278include_mpc8xxdir = $(includedir)/mpc8xx
279
280include_HEADERS = mpc8xx/include/mpc8xx.h
281
282# mpc8xx/clock
283noinst_PROGRAMS += mpc8xx/clock.rel
284mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c
285mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
286mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
287
288# mpc8xx/console-generic
289include_mpc8xx_HEADERS = mpc8xx/include/console.h
290
291noinst_PROGRAMS += mpc8xx/console-generic.rel
292mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c
293mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
294mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
295
296# mpc8xx/cpm
297include_mpc8xx_HEADERS += mpc8xx/include/cpm.h
298
299noinst_PROGRAMS += mpc8xx/cpm.rel
300mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c
301mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
302mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
303
304# mpc8xx/mmu
305include_mpc8xx_HEADERS += mpc8xx/include/mmu.h
306
307noinst_PROGRAMS += mpc8xx/mmu.rel
308mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c
309mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
310mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
311
312# mpc8xx/timer
313noinst_PROGRAMS += mpc8xx/timer.rel
314mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c
315mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
316mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
317endif
318
319EXTRA_DIST += mpc8260/README
320if mpc8260
321include_mpc8260dir = $(includedir)/mpc8260
322
323include_HEADERS = mpc8260/include/mpc8260.h
324
325# mpc8260/console-generic
326include_mpc8260_HEADERS = mpc8260/include/console.h
327
328noinst_PROGRAMS += mpc8260/console-generic.rel
329mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \
330    mpc8260/include/console.h
331mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
332mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
333
334# mpc8260/cpm
335include_mpc8260_HEADERS += mpc8260/include/cpm.h
336
337noinst_PROGRAMS += mpc8260/cpm.rel
338mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \
339    mpc8260/include/cpm.h
340mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
341mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
342
343# mpc8260/mmu
344include_mpc8260_HEADERS += mpc8260/include/mmu.h
345
346noinst_PROGRAMS += mpc8260/mmu.rel
347mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c \
348                          mpc8260/include/mmu.h
349mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
350mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
351
352# mpc8260/timer
353noinst_PROGRAMS += mpc8260/timer.rel
354mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c
355mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
356mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
357endif
358
359##############################################################################
360# START: MPC83XX                                                             #
361##############################################################################
362if mpc83xx
363
364# Includes
365include_mpc83xxdir = $(includedir)/mpc83xx
366
367include_mpc83xx_HEADERS = mpc83xx/include/mpc83xx.h
368
369# Network
370include_mpc83xx_HEADERS += mpc83xx/network/tsec.h
371if HAS_NETWORKING
372noinst_PROGRAMS += mpc83xx/tsec.rel
373mpc83xx_tsec_rel_SOURCES = mpc83xx/network/tsec.c
374mpc83xx_tsec_rel_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
375mpc83xx_tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
376endif
377
378# i2c
379include_mpc83xx_HEADERS += mpc83xx/i2c/mpc83xx_i2cdrv.h
380noinst_PROGRAMS += mpc83xx/i2c.rel
381mpc83xx_i2c_rel_SOURCES = mpc83xx/i2c/mpc83xx_i2cdrv.c \
382        mpc83xx/i2c/mpc83xx_i2cdrv.h
383mpc83xx_i2c_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
384
385# SPI
386include_mpc83xx_HEADERS += mpc83xx/spi/mpc83xx_spidrv.h
387noinst_PROGRAMS += mpc83xx/spi.rel
388mpc83xx_spi_rel_SOURCES = mpc83xx/spi/mpc83xx_spidrv.c \
389        mpc83xx/spi/mpc83xx_spidrv.h
390mpc83xx_spi_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
391
392# GTM
393include_mpc83xx_HEADERS += mpc83xx/include/gtm.h
394noinst_PROGRAMS += mpc83xx/gtm.rel
395mpc83xx_gtm_rel_SOURCES = mpc83xx/gtm/gtm.c \
396        mpc83xx/include/gtm.h
397mpc83xx_gtm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
398
399endif
400##############################################################################
401# END: MPC83XX                                                               #
402##############################################################################
403
404##############################################################################
405# START: MPC55XX                                                             #
406##############################################################################
407if mpc55xx
408
409# Includes
410include_mpc55xxdir = $(includedir)/mpc55xx
411
412include_mpc55xx_HEADERS = mpc55xx/include/regs.h \
413        mpc55xx/include/reg-defs.h \
414        mpc55xx/include/dspi.h \
415        mpc55xx/include/edma.h \
416        mpc55xx/include/emios.h \
417        mpc55xx/include/mpc55xx.h \
418        mpc55xx/include/esci.h \
419        mpc55xx/include/watchdog.h
420
421include_bsp_HEADERS += mpc55xx/include/irq.h
422
423# IRQ
424noinst_PROGRAMS += mpc55xx/irq.rel
425mpc55xx_irq_rel_SOURCES = mpc55xx/irq/irq.c
426mpc55xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
427
428# FEC
429noinst_PROGRAMS += mpc55xx/fec.rel
430mpc55xx_fec_rel_SOURCES = mpc55xx/fec/fec.c
431mpc55xx_fec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
432
433# eDMA
434noinst_PROGRAMS += mpc55xx/edma.rel
435mpc55xx_edma_rel_SOURCES = mpc55xx/edma/edma.c
436mpc55xx_edma_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
437
438# eMIOS
439noinst_PROGRAMS += mpc55xx/emios.rel
440mpc55xx_emios_rel_SOURCES = mpc55xx/emios/emios.c
441mpc55xx_emios_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
442
443# eSCI
444noinst_PROGRAMS += mpc55xx/esci.rel
445mpc55xx_esci_rel_SOURCES = mpc55xx/esci/esci.c
446mpc55xx_esci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
447
448# DSPI
449noinst_PROGRAMS += mpc55xx/dspi.rel
450mpc55xx_dspi_rel_SOURCES = mpc55xx/dspi/dspi.c
451mpc55xx_dspi_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
452
453# Misc
454noinst_PROGRAMS += mpc55xx/misc.rel
455mpc55xx_misc_rel_SOURCES = mpc55xx/misc/copy.S \
456        mpc55xx/misc/fmpll.S \
457        mpc55xx/misc/flash.S
458mpc55xx_misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
459
460endif
461##############################################################################
462# END: MPC55XX                                                               #
463##############################################################################
464
465include $(srcdir)/preinstall.am
466include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.