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

Last change on this file since 8b5778e was 8b5778e, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 12, 2018 at 5:37:36 AM

sparc: Move libcpu content to cpukit

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 6.7 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2EXTRA_DIST =
3
4include $(top_srcdir)/../../../../automake/compile.am
5include $(top_srcdir)/../../bsp.am
6
7dist_project_lib_DATA = startup/bsp_specs
8
9DISTCLEANFILES = include/bspopts.h
10
11noinst_PROGRAMS =
12
13
14EXTRA_DIST += ../../sparc/shared/start/start.S
15start.$(OBJEXT): ../../sparc/shared/start/start.S
16        $(CPPASCOMPILE) -o $@ -c $<
17project_lib_DATA = start.$(OBJEXT)
18
19project_lib_DATA += linkcmds
20dist_project_lib_DATA += ../shared/startup/linkcmds.base
21dist_project_lib_DATA += startup/linkcmds.gr712rc
22dist_project_lib_DATA += startup/linkcmds.gr740
23dist_project_lib_DATA += startup/linkcmds.leon3
24dist_project_lib_DATA += startup/linkcmds.ut699
25dist_project_lib_DATA += startup/linkcmds.ut700
26
27noinst_LIBRARIES = libbsp.a
28libbsp_a_SOURCES =
29
30# startup
31libbsp_a_SOURCES += startup/bspclean.c
32libbsp_a_SOURCES += \
33    ../../shared/bootcard.c startup/bspstart.c \
34    ../../shared/getentropy-cpucounter.c \
35    startup/bsppredriver.c \
36    ../../sparc/shared/startup/bspgetworkarea.c ../../shared/sbrk.c \
37    startup/setvec.c \
38    startup/spurious.c startup/bspidle.S startup/bspdelay.c
39libbsp_a_SOURCES += ../../shared/bspreset.c
40libbsp_a_SOURCES += startup/cpucounter.c
41libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_exit.c
42libbsp_a_SOURCES += startup/bsp_fatal_halt.c
43
44# ISR Handler
45libbsp_a_SOURCES += ../../sparc/shared/cpu.c
46libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
47# gnatsupp
48libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
49# AMBA bus
50libbsp_a_SOURCES += amba/amba.c
51libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
52libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_alloc.c
53libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_count.c
54libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_depth.c
55libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_find_by_idx.c
56libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_freq.c
57libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_parent.c
58libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_old.c
59libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
60libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
61libbsp_a_SOURCES += ../../sparc/shared/amba/ahbstat.c
62
63# Clock Driver and Timer Library
64libbsp_a_SOURCES += ../../sparc/shared/timer/gptimer.c
65libbsp_a_SOURCES += ../../sparc/shared/timer/tlib.c
66libbsp_a_SOURCES += ../../sparc/shared/timer/tlib_ckinit.c
67# non-Driver Manager Clock Implementation
68libbsp_a_SOURCES += clock/ckinit.c
69libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
70
71# console
72libbsp_a_SOURCES += ../../shared/console-termios.c
73libbsp_a_SOURCES += console/console.c
74libbsp_a_SOURCES += ../../sparc/shared/uart/cons.c
75libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart_cons.c
76# debugio
77libbsp_a_SOURCES += console/printk_support.c
78
79# IRQ
80libbsp_a_SOURCES += \
81    startup/eirq.c \
82    ../../sparc/shared/irq/genirq.c  \
83    ../../sparc/shared/irq/irq-shared.c \
84    ../../sparc/shared/irq/bsp_isr_handler.c \
85    ../../shared/src/irq-default-handler.c \
86    ../../shared/src/irq-generic.c \
87    ../../shared/src/irq-info.c \
88    ../../shared/src/irq-legacy.c \
89    ../../shared/src/irq-server.c \
90    ../../shared/src/irq-shell.c
91
92# PCI
93libbsp_a_SOURCES += ../../sparc/shared/pci/grpci.c
94libbsp_a_SOURCES += ../../sparc/shared/pci/grpci2.c
95libbsp_a_SOURCES += ../../sparc/shared/pci/grpci2dma.c
96libbsp_a_SOURCES +=  ../../sparc/shared/pci/pcif.c
97libbsp_a_SOURCES +=  ../../sparc/shared/pci/pci_memreg_sparc_le.c
98libbsp_a_SOURCES +=  ../../sparc/shared/pci/pci_memreg_sparc_be.c
99
100# PCI target devices
101libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_701.c
102libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_adcdac.c
103libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_io.c
104libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_spw_router.c
105libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_rasta_tmtc.c
106libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_tmtc_1553.c
107libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_leon4_n2x.c
108libbsp_a_SOURCES +=  ../../sparc/shared/pci/gr_cpci_gr740.c
109
110# B1553BRM
111libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c
112libbsp_a_SOURCES += ../../sparc/shared/1553/b1553rt.c
113
114# GR1553B
115libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553b.c
116libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bc.c
117libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553bm.c
118libbsp_a_SOURCES += ../../sparc/shared/1553/gr1553rt.c
119
120# CAN
121libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
122    ../../sparc/shared/can/grcan.c
123
124# SpaceWire
125if !HAS_SMP
126libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c
127endif
128libbsp_a_SOURCES += ../../sparc/shared/spw/grspw_pkt.c
129libbsp_a_SOURCES += ../../sparc/shared/spw/grspw_router.c
130
131# UART
132libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart_termios.c
133
134# I2CMST
135libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
136
137# SPI
138libbsp_a_SOURCES += ../../sparc/shared/spi/spictrl.c
139
140# TIME
141libbsp_a_SOURCES += ../../sparc/shared/time/spwcuc.c
142libbsp_a_SOURCES += ../../sparc/shared/time/grctm.c
143
144# GPIO
145libbsp_a_SOURCES += ../../sparc/shared/gpio/grgpio.c
146libbsp_a_SOURCES += ../../sparc/shared/gpio/gpiolib.c
147
148# PWM
149libbsp_a_SOURCES += ../../sparc/shared/pwm/grpwm.c
150
151# ADC and DAC
152libbsp_a_SOURCES += ../../sparc/shared/analog/gradcdac.c
153
154# Memory controllers
155libbsp_a_SOURCES += ../../sparc/shared/mem/mctrl.c
156# l2cache
157libbsp_a_SOURCES += ../../sparc/shared/l2c/l2c.c
158libbsp_a_SOURCES += ../../../../../../bsps/sparc/leon3/start/cache.c
159# griommu
160libbsp_a_SOURCES += ../../sparc/shared/iommu/griommu.c
161# timer
162libbsp_a_SOURCES += timer/timer.c
163libbsp_a_SOURCES += timer/watchdog.c
164
165# GR712
166libbsp_a_SOURCES += ../../sparc/shared/ascs/grascs.c
167libbsp_a_SOURCES += ../../sparc/shared/can/satcan.c
168libbsp_a_SOURCES += ../../sparc/shared/can/canmux.c
169libbsp_a_SOURCES += ../../sparc/shared/slink/grslink.c
170
171# TM/TC
172libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtc.c
173libbsp_a_SOURCES += ../../sparc/shared/tmtc/grtm.c
174
175# MEMSCRUB
176libbsp_a_SOURCES += ../../sparc/shared/scrub/memscrub.c
177# L4STAT
178libbsp_a_SOURCES += ../../sparc/shared/stat/l4stat.c
179# Driver Manager
180libbsp_a_SOURCES += ../../sparc/shared/drvmgr/ambapp_bus.c
181libbsp_a_SOURCES += ../../sparc/shared/drvmgr/ambapp_bus_grlib.c
182libbsp_a_SOURCES += ../../sparc/shared/drvmgr/get_resarray_count.c
183
184if HAS_SMP
185libbsp_a_SOURCES += startup/bspsmp.c
186endif
187
188if HAS_NETWORKING
189libbsp_a_SOURCES += leon_smc91111/leon_smc91111.c
190libbsp_a_SOURCES += leon_open_eth/leon_open_eth.c
191libbsp_a_SOURCES += ../../sparc/shared/net/greth.c
192libbsp_a_SOURCES += ../../sparc/shared/net/network_interface_add.c
193if !HAS_SMP
194libbsp_a_SOURCES += leon_greth/leon_greth.c
195endif
196endif
197
198EXTRA_DIST += shmsupp/README
199if HAS_MP
200# shmsupp
201libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
202    shmsupp/mpisr.c
203endif
204
205EXTRA_DIST += times
206
207include $(top_srcdir)/../../../../automake/local.am
208include $(srcdir)/../../../../../../bsps/sparc/leon3/headers.am
Note: See TracBrowser for help on using the repository browser.