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

5
Last change on this file since 4debaca6 was 4debaca6, checked in by Daniel Cederman <cederman@…>, on Jul 14, 2017 at 12:12:07 PM

bsps/sparc: Add leon3 BSP variants

Rename NGMP to GR740 and add configs for UT699, UT700, and GR712RC

The UT699 requires -mcpu=leon as it does not support the CAS instruction
provided by -mcpu=leon3. It also requires -mfix-ut699 for errata fixes.

UT700 and GR712RC requires the -mfix-ut700 and -mfix-gr712rc flags that
have been recently added to GCC's master and 7-branch.

Remove -msoft-float from the leon3 config to make the more common case
of using the FPU the default.

Update #3057.

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