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

4.115
Last change on this file since 3f38335b was 3f38335b, checked in by Daniel Hellstrom <daniel@…>, on Feb 10, 2015 at 3:05:38 PM

LEON: added get_resarray_count() helper routine

  • Property mode set to 100644
File size: 9.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_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 += startup/linkcmds ../shared/startup/linkcmds.base
27
28noinst_LIBRARIES += libbsp.a
29libbsp_a_SOURCES =
30
31# startup
32libbsp_a_SOURCES += ../../shared/bspclean.c
33libbsp_a_SOURCES += ../../shared/bsplibc.c
34libbsp_a_SOURCES += ../../shared/bsppost.c
35libbsp_a_SOURCES += startup/bsppredriver.c
36libbsp_a_SOURCES += startup/bspstart.c
37libbsp_a_SOURCES += ../../sparc/shared/bsppretaskinghook.c
38libbsp_a_SOURCES += ../../sparc/shared/startup/bspgetworkarea.c
39libbsp_a_SOURCES += ../../shared/bootcard.c
40libbsp_a_SOURCES += ../../shared/sbrk.c
41libbsp_a_SOURCES += startup/setvec.c
42libbsp_a_SOURCES += startup/spurious.c
43libbsp_a_SOURCES += startup/bspidle.c
44libbsp_a_SOURCES += startup/bspdelay.c
45libbsp_a_SOURCES += ../../sparc/shared/startup/early_malloc.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_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_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_HEADERS += ../../sparc/shared/include/gptimer.h
96include_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_HEADERS += ../../sparc/shared/include/grpci.h
102include_HEADERS += ../../sparc/shared/include/grpci2.h
103include_HEADERS += ../../sparc/shared/include/pcif.h
104include_HEADERS += include/at697_pci.h
105libbsp_a_SOURCES += ../../sparc/shared/pci/grpci2.c
106libbsp_a_SOURCES += ../../sparc/shared/pci/grpci.c
107libbsp_a_SOURCES += ../../sparc/shared/pci/pcif.c
108libbsp_a_SOURCES +=  ../../sparc/shared/pci/pci_memreg_sparc_le.c
109libbsp_a_SOURCES +=  ../../sparc/shared/pci/pci_memreg_sparc_be.c
110libbsp_a_SOURCES +=  pci/at697_pci.c
111
112# PCI target devices
113include_HEADERS += ../../sparc/shared/include/gr_701.h
114include_HEADERS += ../../sparc/shared/include/gr_rasta_adcdac.h
115include_HEADERS += ../../sparc/shared/include/gr_rasta_io.h
116include_HEADERS += ../../sparc/shared/include/gr_rasta_spw_router.h
117include_HEADERS += ../../sparc/shared/include/gr_rasta_tmtc.h
118include_HEADERS += ../../sparc/shared/include/gr_leon4_n2x.h
119libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_701.c
120libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_adcdac.c
121libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_io.c
122libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_spw_router.c
123libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_tmtc.c
124libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_leon4_n2x.c
125
126# B1553BRM
127include_HEADERS += ../../sparc/shared/include/b1553brm.h
128include_HEADERS += ../../sparc/shared/include/b1553rt.h
129libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c
130libbsp_a_SOURCES += ../../sparc/shared/1553/b1553rt.c
131
132# GR1553B
133include_HEADERS += ../../sparc/shared/include/gr1553b.h
134include_HEADERS += ../../sparc/shared/include/gr1553bc.h
135include_HEADERS += ../../sparc/shared/include/gr1553bc_list.h
136include_HEADERS += ../../sparc/shared/include/gr1553bm.h
137include_HEADERS += ../../sparc/shared/include/gr1553rt.h
138libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553b.c
139libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bc.c
140libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bm.c
141libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553rt.c
142
143# CAN
144include_HEADERS += ../../sparc/shared/include/occan.h
145include_HEADERS += ../../sparc/shared/include/grcan.h
146libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
147    ../../sparc/shared/can/grcan.c
148
149# SpaceWire
150include_HEADERS += ../../sparc/shared/include/grspw.h
151include_HEADERS += ../../sparc/shared/include/grspw_router.h
152libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c
153libbsp_a_SOURCES += ../../sparc/shared/spw/grspw_router.c
154
155# UART (RAW)
156include_HEADERS += ../../sparc/shared/include/apbuart.h
157libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c
158
159# I2CMST
160include_HEADERS += ../../sparc/shared/include/i2cmst.h
161libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
162
163# SPI
164include_HEADERS += ../../sparc/shared/include/spictrl.h
165libbsp_a_SOURCES += ../../sparc/shared/spi/spictrl.c
166
167# TIME
168include_HEADERS += ../../sparc/shared/include/spwcuc.h
169include_HEADERS += ../../sparc/shared/include/grctm.h
170libbsp_a_SOURCES += ../../sparc/shared/time/spwcuc.c
171libbsp_a_SOURCES += ../../sparc/shared/time/grctm.c
172
173# GPIO
174include_HEADERS += ../../sparc/shared/include/grgpio.h
175include_HEADERS += ../../sparc/shared/include/gpiolib.h
176libbsp_a_SOURCES += ../../sparc/shared/gpio/grgpio.c
177libbsp_a_SOURCES += ../../sparc/shared/gpio/gpiolib.c
178
179# PWM
180include_HEADERS += ../../sparc/shared/include/grpwm.h
181libbsp_a_SOURCES += ../../sparc/shared/pwm/grpwm.c
182
183# ADC and DAC
184include_HEADERS += ../../sparc/shared/include/gradcdac.h
185libbsp_a_SOURCES += ../../sparc/shared/analog/gradcdac.c
186
187# Memory controllers
188libbsp_a_SOURCES += ../../sparc/shared/mem/mctrl.c
189
190# timer
191libbsp_a_SOURCES += timer/timer.c
192
193# TM/TC
194include_HEADERS += ../../sparc/shared/include/grtc.h
195include_HEADERS += ../../sparc/shared/include/grtm.h
196libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtc.c
197libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtm.c
198
199# Driver Manager
200include_drvmgrdir = $(includedir)/drvmgr
201include_drvmgr_HEADERS = ../../sparc/shared/include/drvmgr/ambapp_bus.h
202include_drvmgr_HEADERS += ../../sparc/shared/include/drvmgr/leon2_amba_bus.h
203include_drvmgr_HEADERS += ../../sparc/shared/include/drvmgr/bspcommon.h
204libbsp_a_SOURCES += ../../sparc/shared/drvmgr/ambapp_bus.c
205libbsp_a_SOURCES += ../../sparc/shared/drvmgr/ambapp_bus_leon2.c
206libbsp_a_SOURCES += ../../sparc/shared/drvmgr/leon2_amba_bus.c
207libbsp_a_SOURCES += ../../sparc/shared/drvmgr/get_resarray_count.c
208
209if HAS_SMP
210libbsp_a_SOURCES += ../../shared/bspsmp.c
211libbsp_a_SOURCES += ../../shared/bspsmpgetcurrentprocessor.c
212endif
213
214if HAS_NETWORKING
215noinst_PROGRAMS += leon_smc91111.rel
216leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
217leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
218leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
219leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
220endif
221
222if HAS_NETWORKING
223noinst_PROGRAMS += leon_open_eth.rel
224leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
225leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
226leon_open_eth_rel_CPPFLAGS +=  -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
227leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
228endif
229
230if HAS_NETWORKING
231noinst_PROGRAMS += leon_greth.rel
232leon_greth_rel_SOURCES = ../../sparc/shared/net/greth.c
233include_HEADERS += ../../sparc/shared/include/greth.h
234leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
235leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
236leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
237
238# BSP Network configuration
239include_HEADERS += ../../sparc/shared/include/network_interface_add.h
240libbsp_a_SOURCES += ../../sparc/shared/net/network_interface_add.c
241endif
242
243libbsp_a_LIBADD = \
244    ../../../libcpu/@RTEMS_CPU@/access.rel \
245    ../../../libcpu/@RTEMS_CPU@/cache.rel \
246    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
247    ../../../libcpu/@RTEMS_CPU@/syscall.rel
248
249if HAS_NETWORKING
250libbsp_a_LIBADD += leon_greth.rel
251libbsp_a_LIBADD += leon_open_eth.rel
252libbsp_a_LIBADD += leon_smc91111.rel
253endif
254
255EXTRA_DIST = times
256
257include $(srcdir)/preinstall.am
258include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.