source: rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am @ f3ce8f41

Last change on this file since f3ce8f41 was f3ce8f41, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 2, 2018 at 7:00:02 AM

bsps: Include bsp.am in all BSP Makefile.am

Update #3254.

  • Property mode set to 100644
File size: 11.8 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2
3include $(top_srcdir)/../../../../automake/compile.am
4include $(top_srcdir)/../../bsp.am
5
6include_bspdir = $(includedir)/bsp
7
8dist_project_lib_DATA = bsp_specs
9
10include_HEADERS = include/bsp.h
11include_HEADERS += include/tm27.h
12include_bsp_HEADERS = ../../sparc/shared/include/debug_defs.h
13
14nodist_include_HEADERS = include/bspopts.h
15nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
16DISTCLEANFILES = include/bspopts.h
17
18noinst_PROGRAMS =
19
20include_HEADERS += include/leon.h
21
22noinst_LIBRARIES = libbspstart.a
23libbspstart_a_SOURCES = ../../sparc/shared/start/start.S
24project_lib_DATA = start.$(OBJEXT)
25
26dist_project_lib_DATA += ../shared/startup/linkcmds.base
27dist_project_lib_DATA += startup/linkcmds
28dist_project_lib_DATA += startup/linkcmds.leon3
29dist_project_lib_DATA += startup/linkcmds.ut699
30dist_project_lib_DATA += startup/linkcmds.gr712rc
31dist_project_lib_DATA += startup/linkcmds.ut700
32dist_project_lib_DATA += startup/linkcmds.gr740
33
34noinst_LIBRARIES += libbsp.a
35libbsp_a_SOURCES =
36
37# startup
38libbsp_a_SOURCES += startup/bspclean.c
39libbsp_a_SOURCES += \
40    ../../shared/bootcard.c startup/bspstart.c \
41    ../../shared/getentropy-cpucounter.c \
42    startup/bsppredriver.c \
43    ../../sparc/shared/startup/bspgetworkarea.c ../../shared/sbrk.c \
44    startup/setvec.c \
45    startup/spurious.c startup/bspidle.S startup/bspdelay.c
46libbsp_a_SOURCES += ../../shared/bspreset.c
47libbsp_a_SOURCES += startup/cpucounter.c
48libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_exit.c
49libbsp_a_SOURCES += startup/bsp_fatal_halt.c
50
51# ISR Handler
52libbsp_a_SOURCES += ../../sparc/shared/cpu.c
53libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
54# gnatsupp
55libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
56include_bsp_HEADERS += ../shared/include/gnatcommon.h
57# AMBA bus
58include_HEADERS += include/amba.h
59include_HEADERS += ../../sparc/shared/include/ambapp.h
60include_HEADERS += ../../sparc/shared/include/ambapp_ids.h
61include_HEADERS += ../../sparc/shared/include/grlib.h
62include_bsp_HEADERS += ../../sparc/shared/include/ahbstat.h
63libbsp_a_SOURCES += amba/amba.c
64libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
65libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_alloc.c
66libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_count.c
67libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_depth.c
68libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_find_by_idx.c
69libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_freq.c
70libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_parent.c
71libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_old.c
72libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
73libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
74libbsp_a_SOURCES += ../../sparc/shared/amba/ahbstat.c
75
76# Clock Driver and Timer Library
77include_bsp_HEADERS += ../../sparc/shared/include/gptimer.h
78include_bsp_HEADERS += ../../sparc/shared/include/tlib.h
79libbsp_a_SOURCES += ../../sparc/shared/timer/gptimer.c
80libbsp_a_SOURCES += ../../sparc/shared/timer/tlib.c
81libbsp_a_SOURCES += ../../sparc/shared/timer/tlib_ckinit.c
82# non-Driver Manager Clock Implementation
83libbsp_a_SOURCES += clock/ckinit.c
84libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
85
86# console
87libbsp_a_SOURCES += ../../shared/console-termios.c
88libbsp_a_SOURCES += console/console.c
89libbsp_a_SOURCES += ../../sparc/shared/uart/cons.c
90libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart_cons.c
91include_bsp_HEADERS += ../../sparc/shared/include/cons.h
92include_bsp_HEADERS += ../../sparc/shared/include/apbuart_cons.h
93# debugio
94libbsp_a_SOURCES += console/printk_support.c
95
96# IRQ
97include_bsp_HEADERS += ../../sparc/shared/include/genirq.h
98include_bsp_HEADERS += \
99    ../../shared/include/irq-generic.h \
100    ../../shared/include/irq-info.h \
101    include/bsp/irq.h
102libbsp_a_SOURCES += \
103    startup/eirq.c \
104    ../../sparc/shared/irq/genirq.c  \
105    ../../sparc/shared/irq/irq-shared.c \
106    ../../sparc/shared/irq/bsp_isr_handler.c \
107    ../../shared/src/irq-default-handler.c \
108    ../../shared/src/irq-generic.c \
109    ../../shared/src/irq-info.c \
110    ../../shared/src/irq-legacy.c \
111    ../../shared/src/irq-server.c \
112    ../../shared/src/irq-shell.c
113
114# PCI
115include_bsp_HEADERS += ../../sparc/shared/include/grpci.h
116include_bsp_HEADERS += ../../sparc/shared/include/grpci2.h
117include_bsp_HEADERS += ../../sparc/shared/include/grpci2dma.h
118include_bsp_HEADERS += ../../sparc/shared/include/pcif.h
119libbsp_a_SOURCES += ../../sparc/shared/pci/grpci.c
120libbsp_a_SOURCES += ../../sparc/shared/pci/grpci2.c
121libbsp_a_SOURCES += ../../sparc/shared/pci/grpci2dma.c
122libbsp_a_SOURCES +=  ../../sparc/shared/pci/pcif.c
123libbsp_a_SOURCES +=  ../../sparc/shared/pci/pci_memreg_sparc_le.c
124libbsp_a_SOURCES +=  ../../sparc/shared/pci/pci_memreg_sparc_be.c
125
126# PCI target devices
127include_bsp_HEADERS += ../../sparc/shared/include/gr_701.h
128include_bsp_HEADERS += ../../sparc/shared/include/gr_rasta_adcdac.h
129include_bsp_HEADERS += ../../sparc/shared/include/gr_rasta_io.h
130include_bsp_HEADERS += ../../sparc/shared/include/gr_rasta_spw_router.h
131include_bsp_HEADERS += ../../sparc/shared/include/gr_rasta_tmtc.h
132include_bsp_HEADERS += ../../sparc/shared/include/gr_tmtc_1553.h
133include_bsp_HEADERS += ../../sparc/shared/include/gr_leon4_n2x.h
134include_bsp_HEADERS += ../../sparc/shared/include/gr_cpci_gr740.h
135libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_701.c
136libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_adcdac.c
137libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_io.c
138libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_spw_router.c
139libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_tmtc.c
140libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_tmtc_1553.c
141libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_leon4_n2x.c
142libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_cpci_gr740.c
143
144# B1553BRM
145include_bsp_HEADERS += ../../sparc/shared/include/b1553brm.h
146include_bsp_HEADERS += ../../sparc/shared/include/b1553rt.h
147libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c
148libbsp_a_SOURCES += ../../sparc/shared/1553/b1553rt.c
149
150# GR1553B
151include_bsp_HEADERS += ../../sparc/shared/include/gr1553b.h
152include_bsp_HEADERS += ../../sparc/shared/include/gr1553bc.h
153include_bsp_HEADERS += ../../sparc/shared/include/gr1553bc_list.h
154include_bsp_HEADERS += ../../sparc/shared/include/gr1553bm.h
155include_bsp_HEADERS += ../../sparc/shared/include/gr1553rt.h
156libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553b.c
157libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bc.c
158libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bm.c
159libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553rt.c
160
161# CAN
162include_bsp_HEADERS += ../../sparc/shared/include/occan.h \
163    ../../sparc/shared/include/grcan.h
164libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
165    ../../sparc/shared/can/grcan.c
166
167# SpaceWire
168if !HAS_SMP
169include_bsp_HEADERS += ../../sparc/shared/include/grspw.h
170libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c
171endif
172include_bsp_HEADERS += ../../sparc/shared/include/grspw_pkt.h
173include_bsp_HEADERS += ../../sparc/shared/include/grspw_router.h
174libbsp_a_SOURCES += ../../sparc/shared/spw/grspw_pkt.c
175libbsp_a_SOURCES += ../../sparc/shared/spw/grspw_router.c
176
177# UART
178include_bsp_HEADERS += ../../sparc/shared/include/apbuart.h \
179    ../../sparc/shared/include/apbuart_termios.h
180libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart_termios.c
181
182# I2CMST
183include_bsp_HEADERS += ../../sparc/shared/include/i2cmst.h
184libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
185
186# SPI
187include_bsp_HEADERS += ../../sparc/shared/include/spictrl.h
188libbsp_a_SOURCES += ../../sparc/shared/spi/spictrl.c
189
190# TIME
191include_bsp_HEADERS += ../../sparc/shared/include/spwcuc.h
192include_bsp_HEADERS += ../../sparc/shared/include/grctm.h
193libbsp_a_SOURCES += ../../sparc/shared/time/spwcuc.c
194libbsp_a_SOURCES += ../../sparc/shared/time/grctm.c
195
196# GPIO
197include_bsp_HEADERS += ../../sparc/shared/include/grgpio.h
198include_bsp_HEADERS += ../../sparc/shared/include/gpiolib.h
199libbsp_a_SOURCES += ../../sparc/shared/gpio/grgpio.c
200libbsp_a_SOURCES += ../../sparc/shared/gpio/gpiolib.c
201
202# PWM
203include_bsp_HEADERS += ../../sparc/shared/include/grpwm.h
204libbsp_a_SOURCES += ../../sparc/shared/pwm/grpwm.c
205
206# ADC and DAC
207include_bsp_HEADERS += ../../sparc/shared/include/gradcdac.h
208libbsp_a_SOURCES += ../../sparc/shared/analog/gradcdac.c
209
210# Memory controllers
211libbsp_a_SOURCES += ../../sparc/shared/mem/mctrl.c
212include_bsp_HEADERS += ../../sparc/shared/include/mctrl.h
213
214# l2cache
215libbsp_a_SOURCES += ../../sparc/shared/l2c/l2c.c
216include_bsp_HEADERS += ../../sparc/shared/include/l2c.h
217
218# griommu
219libbsp_a_SOURCES += ../../sparc/shared/iommu/griommu.c
220include_bsp_HEADERS += ../../sparc/shared/include/griommu.h
221
222# timer
223libbsp_a_SOURCES += timer/timer.c
224libbsp_a_SOURCES += timer/watchdog.c
225include_bsp_HEADERS += include/watchdog.h
226
227# Cache
228libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
229libbsp_a_SOURCES += include/cache_.h
230libbsp_a_CPPFLAGS = -I$(srcdir)/include
231
232# GR712
233include_bsp_HEADERS += ../../sparc/shared/include/grascs.h
234include_bsp_HEADERS += ../../sparc/shared/include/satcan.h
235include_bsp_HEADERS += ../../sparc/shared/include/canmux.h
236include_bsp_HEADERS += ../../sparc/shared/include/grslink.h
237libbsp_a_SOURCES += ../../sparc/shared/ascs/grascs.c
238libbsp_a_SOURCES += ../../sparc/shared/can/satcan.c
239libbsp_a_SOURCES += ../../sparc/shared/can/canmux.c
240libbsp_a_SOURCES += ../../sparc/shared/slink/grslink.c
241
242# TM/TC
243include_bsp_HEADERS += ../../sparc/shared/include/grtc.h
244include_bsp_HEADERS += ../../sparc/shared/include/grtm.h
245libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtc.c
246libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtm.c
247
248# MEMSCRUB
249libbsp_a_SOURCES += ../../sparc/shared/scrub/memscrub.c
250include_bsp_HEADERS += ../../sparc/shared/include/memscrub.h
251
252# L4STAT
253libbsp_a_SOURCES += ../../sparc/shared/stat/l4stat.c
254include_bsp_HEADERS += ../../sparc/shared/include/l4stat.h
255
256# Driver Manager
257include_drvmgrdir = $(includedir)/drvmgr
258include_drvmgr_HEADERS = ../../sparc/shared/include/drvmgr/ambapp_bus_grlib.h
259include_drvmgr_HEADERS += ../../sparc/shared/include/drvmgr/ambapp_bus.h
260include_drvmgr_HEADERS += ../../sparc/shared/include/drvmgr/bspcommon.h
261libbsp_a_SOURCES += ../../sparc/shared/drvmgr/ambapp_bus.c
262libbsp_a_SOURCES += ../../sparc/shared/drvmgr/ambapp_bus_grlib.c
263libbsp_a_SOURCES += ../../sparc/shared/drvmgr/get_resarray_count.c
264
265if HAS_SMP
266libbsp_a_SOURCES += startup/bspsmp.c
267endif
268
269if HAS_NETWORKING
270noinst_PROGRAMS += leon_smc91111.rel
271leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
272leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
273leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
274leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
275endif
276
277if HAS_NETWORKING
278noinst_PROGRAMS += leon_open_eth.rel
279leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
280leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
281leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
282leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
283endif
284
285if HAS_NETWORKING
286noinst_PROGRAMS += leon_greth.rel
287if !HAS_SMP
288libbsp_a_SOURCES += leon_greth/leon_greth.c
289endif
290leon_greth_rel_SOURCES = ../../sparc/shared/net/greth.c
291include_bsp_HEADERS += ../../sparc/shared/include/greth.h
292leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
293leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
294leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
295endif
296
297# BSP Network configuration
298if HAS_NETWORKING
299include_bsp_HEADERS += ../../sparc/shared/include/network_interface_add.h
300libbsp_a_SOURCES += ../../sparc/shared/net/network_interface_add.c
301endif
302
303EXTRA_DIST = shmsupp/README
304if HAS_MP
305# shmsupp
306libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
307    shmsupp/mpisr.c
308endif
309
310libbsp_a_LIBADD = \
311    ../../../libcpu/@RTEMS_CPU@/access.rel \
312    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
313    ../../../libcpu/@RTEMS_CPU@/syscall.rel
314
315if HAS_NETWORKING
316libbsp_a_LIBADD += leon_open_eth.rel
317libbsp_a_LIBADD += leon_greth.rel
318libbsp_a_LIBADD += leon_smc91111.rel
319endif
320
321EXTRA_DIST += times
322
323include $(srcdir)/preinstall.am
324include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.