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