source: rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am @ e58e29f

Last change on this file since e58e29f was e58e29f, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 24, 2017 at 6:58:55 AM

Remove coverhd.h

This header file contained timing overhead values which are hard to
maintain.

Update #3254.

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