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

4.11
Last change on this file since f37a3c2 was f37a3c2, checked in by Daniel Hellstrom <daniel@…>, on Feb 6, 2015 at 10:10:17 AM

GPTIMER: fix build warnings

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