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

5
Last change on this file since 7dbc43d was 7dbc43d, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 13, 2018 at 5:18:38 AM

bsps/powerpc: Move basic support to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 10.6 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../aclocal
2
3include $(top_srcdir)/../../../automake/compile.am
4
5EXTRA_DIST =
6
7noinst_PROGRAMS =
8
9if !mpc5xx
10noinst_PROGRAMS += new-exceptions/exc_bspsupport.rel
11new_exceptions_exc_bspsupport_rel_SOURCES = \
12    new-exceptions/bspsupport/ppc_exc_async_normal.S \
13    new-exceptions/bspsupport/ppc_exc_fatal.S \
14    new-exceptions/bspsupport/ppc_exc_print.c
15if !qoriq
16new_exceptions_exc_bspsupport_rel_SOURCES += \
17    new-exceptions/bspsupport/ppc-code-copy.c \
18    new-exceptions/bspsupport/ppc_exc.S \
19    new-exceptions/bspsupport/ppc_exc_naked.S \
20    new-exceptions/bspsupport/ppc_exc_hdl.c \
21    new-exceptions/bspsupport/ppc_exc_initialize.c \
22    new-exceptions/bspsupport/ppc_exc_global_handler.c \
23    new-exceptions/bspsupport/ppc_exc_categories.c \
24    new-exceptions/bspsupport/ppc_exc_address.c \
25    new-exceptions/bspsupport/ppc_exc_alignment.c \
26    new-exceptions/bspsupport/ppc_exc_prologue.c
27endif
28
29new_exceptions_exc_bspsupport_rel_CPPFLAGS = $(AM_CPPFLAGS)
30new_exceptions_exc_bspsupport_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
31endif
32
33EXTRA_DIST += new-exceptions/bspsupport/README
34EXTRA_DIST += new-exceptions/bspsupport/ppc_exc_test.c
35
36EXTRA_DIST += ppc403/README ppc403/vectors/README
37if ppc4xx
38# ppc403/clock
39noinst_PROGRAMS += ppc403/clock.rel
40ppc403_clock_rel_SOURCES = ppc403/clock/clock.c
41ppc403_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
42ppc403_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
43
44# ppc403/console
45noinst_PROGRAMS += ppc403/console.rel
46if ppc405
47ppc403_console_rel_SOURCES = ppc403/console/console405.c
48else
49ppc403_console_rel_SOURCES = ppc403/console/console.c
50endif
51ppc403_console_rel_CPPFLAGS = $(AM_CPPFLAGS)
52ppc403_console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54# ppc403/timer
55noinst_PROGRAMS += ppc403/timer.rel
56ppc403_timer_rel_SOURCES = ppc403/timer/timer.c
57ppc403_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
58ppc403_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60# ppc403/tty_drv
61if ppc405
62noinst_PROGRAMS += ppc403/tty_drv.rel
63ppc403_tty_drv_rel_SOURCES = ppc403/tty_drv/tty_drv.c ppc403/tty_drv/tty_drv.h
64ppc403_tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS)
65ppc403_tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
66endif
67
68endif # ppc4xx
69
70if ppc405
71
72## ppc4xx/include
73endif # ppc405
74
75
76## mpc5xx
77EXTRA_DIST += mpc5xx/README
78if mpc5xx
79# mpc5xx/clock
80noinst_PROGRAMS += mpc5xx/clock.rel
81mpc5xx_clock_rel_SOURCES = mpc5xx/clock/clock.c
82mpc5xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
83mpc5xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
84
85# mpc5xx/console-generic
86noinst_PROGRAMS += mpc5xx/console-generic.rel
87mpc5xx_console_generic_rel_SOURCES = mpc5xx/console-generic/console-generic.c
88mpc5xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
89mpc5xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
90
91# mpc5xx/exceptions
92noinst_PROGRAMS += mpc5xx/exceptions.rel
93mpc5xx_exceptions_rel_SOURCES = mpc5xx/exceptions/raw_exception.c
94mpc5xx_exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS)
95mpc5xx_exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
96
97# mpc5xx/irq
98noinst_PROGRAMS += mpc5xx/irq.rel
99mpc5xx_irq_rel_SOURCES = mpc5xx/irq/irq.c mpc5xx/irq/irq_init.c mpc5xx/irq/irq_asm.S
100mpc5xx_irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
101mpc5xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
102
103# mpc5xx/timer
104noinst_PROGRAMS += mpc5xx/timer.rel
105mpc5xx_timer_rel_SOURCES = mpc5xx/timer/timer.c
106mpc5xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
107mpc5xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
108
109# mpc5xx/vectors
110noinst_PROGRAMS += mpc5xx/vectors.rel
111mpc5xx_vectors_rel_SOURCES = mpc5xx/vectors/vectors_init.c mpc5xx/vectors/vectors.S \
112    new-exceptions/bspsupport/ppc_exc_print.c
113mpc5xx_vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
114mpc5xx_vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
115endif
116
117if mpc6xx
118
119# mpc6xx/mmu
120noinst_PROGRAMS += mpc6xx/mmu.rel
121mpc6xx_mmu_rel_SOURCES = mpc6xx/mmu/bat.c mpc6xx/mmu/bat.h \
122    mpc6xx/mmu/pte121.c mpc6xx/mmu/pte121.h \
123    mpc6xx/mmu/mmuAsm.S
124mpc6xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
125mpc6xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
126
127# mpc6xx/clock
128noinst_PROGRAMS += mpc6xx/clock.rel
129mpc6xx_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
130mpc6xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
131mpc6xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
132
133# mpc6xx/timer
134noinst_PROGRAMS += mpc6xx/timer.rel
135mpc6xx_timer_rel_SOURCES = mpc6xx/timer/timer.c
136mpc6xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
137mpc6xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
138
139# mpc6xx/altivec
140noinst_PROGRAMS += mpc6xx/altivec.rel
141mpc6xx_altivec_rel_SOURCES = mpc6xx/altivec/vec_sup.c mpc6xx/altivec/vec_sup_asm.S
142mpc6xx_altivec_rel_CPPFLAGS = $(AM_CPPFLAGS)
143mpc6xx_altivec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
144endif
145EXTRA_DIST      += mpc6xx/altivec/README
146
147# e500/clock
148if e500_clock
149noinst_PROGRAMS += e500/clock.rel
150e500_clock_rel_SOURCES = mpc6xx/clock/c_clock.c mpc6xx/clock/c_clock.h
151e500_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
152e500_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
153endif
154
155# e500/timer
156if e500_timer
157noinst_PROGRAMS += e500/timer.rel
158e500_timer_rel_SOURCES = mpc6xx/timer/timer.c
159e500_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
160e500_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
161endif
162
163# e500/mmu
164if e500_mmu
165noinst_PROGRAMS += e500/mmu.rel
166e500_mmu_rel_SOURCES = e500/mmu/mmu.c e500/mmu/e500_mmu.h
167e500_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
168e500_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
169endif
170
171EXTRA_DIST += mpc8xx/README
172if mpc8xx
173# mpc8xx/clock
174noinst_PROGRAMS += mpc8xx/clock.rel
175mpc8xx_clock_rel_SOURCES = mpc8xx/clock/clock.c
176mpc8xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
177mpc8xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
178
179# mpc8xx/console-generic
180noinst_PROGRAMS += mpc8xx/console-generic.rel
181mpc8xx_console_generic_rel_SOURCES = mpc8xx/console-generic/console-generic.c
182mpc8xx_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
183mpc8xx_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
184
185# mpc8xx/cpm
186noinst_PROGRAMS += mpc8xx/cpm.rel
187mpc8xx_cpm_rel_SOURCES = mpc8xx/cpm/cp.c mpc8xx/cpm/dpram.c
188mpc8xx_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
189mpc8xx_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
190
191# mpc8xx/mmu
192noinst_PROGRAMS += mpc8xx/mmu.rel
193mpc8xx_mmu_rel_SOURCES = mpc8xx/mmu/mmu.c
194mpc8xx_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
195mpc8xx_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
196
197# mpc8xx/timer
198noinst_PROGRAMS += mpc8xx/timer.rel
199mpc8xx_timer_rel_SOURCES = mpc8xx/timer/timer.c
200mpc8xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
201mpc8xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
202endif
203
204EXTRA_DIST += mpc8260/README
205if mpc8260
206# mpc8260/console-generic
207noinst_PROGRAMS += mpc8260/console-generic.rel
208mpc8260_console_generic_rel_SOURCES = mpc8260/console-generic/console-generic.c \
209    mpc8260/include/console.h
210mpc8260_console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS)
211mpc8260_console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
212
213# mpc8260/cpm
214noinst_PROGRAMS += mpc8260/cpm.rel
215mpc8260_cpm_rel_SOURCES = mpc8260/cpm/cp.c mpc8260/cpm/dpram.c mpc8260/cpm/brg.c \
216    mpc8260/include/cpm.h
217mpc8260_cpm_rel_CPPFLAGS = $(AM_CPPFLAGS)
218mpc8260_cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
219
220# mpc8260/mmu
221noinst_PROGRAMS += mpc8260/mmu.rel
222mpc8260_mmu_rel_SOURCES = mpc8260/mmu/mmu.c \
223                          mpc8260/include/mmu.h
224mpc8260_mmu_rel_CPPFLAGS = $(AM_CPPFLAGS)
225mpc8260_mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
226
227# mpc8260/timer
228noinst_PROGRAMS += mpc8260/timer.rel
229mpc8260_timer_rel_SOURCES = mpc8260/timer/timer.c
230mpc8260_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
231mpc8260_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
232endif
233
234##############################################################################
235# START: MPC83XX                                                             #
236##############################################################################
237if mpc83xx
238
239# Includes
240
241# Network
242if HAS_NETWORKING
243noinst_PROGRAMS += mpc83xx/tsec.rel
244mpc83xx_tsec_rel_SOURCES = mpc83xx/network/tsec.c
245mpc83xx_tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
246endif
247
248# i2c
249noinst_PROGRAMS += mpc83xx/i2c.rel
250mpc83xx_i2c_rel_SOURCES = mpc83xx/i2c/mpc83xx_i2cdrv.c \
251        mpc83xx/i2c/mpc83xx_i2cdrv.h
252mpc83xx_i2c_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
253
254# SPI
255noinst_PROGRAMS += mpc83xx/spi.rel
256mpc83xx_spi_rel_SOURCES = mpc83xx/spi/mpc83xx_spidrv.c \
257        mpc83xx/spi/mpc83xx_spidrv.h
258mpc83xx_spi_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
259
260# GTM
261noinst_PROGRAMS += mpc83xx/gtm.rel
262mpc83xx_gtm_rel_SOURCES = mpc83xx/gtm/gtm.c \
263        mpc83xx/include/gtm.h
264mpc83xx_gtm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
265
266endif
267##############################################################################
268# END: MPC83XX                                                               #
269##############################################################################
270
271##############################################################################
272# START: MPC55XX                                                             #
273##############################################################################
274if mpc55xx
275
276# IRQ
277noinst_PROGRAMS += mpc55xx/irq.rel
278mpc55xx_irq_rel_SOURCES = mpc55xx/irq/irq.c
279mpc55xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
280
281# mpc6xx/timer
282noinst_PROGRAMS += mpc55xx/timer.rel
283mpc55xx_timer_rel_SOURCES = mpc6xx/timer/timer.c
284mpc55xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
285mpc55xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
286
287# FEC
288noinst_PROGRAMS += mpc55xx/fec.rel
289mpc55xx_fec_rel_SOURCES = mpc55xx/fec/fec.c
290mpc55xx_fec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
291
292# eDMA
293noinst_PROGRAMS += mpc55xx/edma.rel
294mpc55xx_edma_rel_SOURCES = mpc55xx/edma/edma.c
295mpc55xx_edma_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
296
297# eMIOS
298noinst_PROGRAMS += mpc55xx/emios.rel
299mpc55xx_emios_rel_SOURCES = mpc55xx/emios/emios.c
300mpc55xx_emios_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
301
302# SIU
303noinst_PROGRAMS += mpc55xx/siu.rel
304mpc55xx_siu_rel_SOURCES = mpc55xx/siu/siu.c
305mpc55xx_siu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
306
307# DSPI
308noinst_PROGRAMS += mpc55xx/dspi.rel
309mpc55xx_dspi_rel_SOURCES = mpc55xx/dspi/dspi.c
310mpc55xx_dspi_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
311
312# Misc
313noinst_PROGRAMS += mpc55xx/misc.rel
314mpc55xx_misc_rel_SOURCES = mpc55xx/misc/copy.S \
315        mpc55xx/misc/flash_support.c
316mpc55xx_misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
317
318endif
319##############################################################################
320# END: MPC55XX                                                               #
321##############################################################################
322
323##############################################################################
324# START: QorIQ                                                               #
325##############################################################################
326if qoriq
327
328# Network
329if HAS_NETWORKING
330noinst_PROGRAMS += tsec.rel
331tsec_rel_SOURCES = mpc83xx/network/tsec.c
332tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
333endif
334
335endif
336##############################################################################
337# END: QorIQ                                                                 #
338##############################################################################
339
340include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.