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