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

4.115
Last change on this file since 21abc43 was 21abc43, checked in by Sebastian Huber <sebastian.huber@…>, on Jun 30, 2014 at 7:33:36 AM

bsps/sparc: Add and use shared APBUART console

Move the APBUART console driver support to the shared SPARC area so that
it can be reused by other BSPs. Only the console driver initialization
is now BSP specific.

  • Property mode set to 100644
File size: 5.9 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 += ../../shared/bspclean.c ../../shared/bsplibc.c \
36    ../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
37    ../../sparc/shared/bsppretaskinghook.c startup/bsppredriver.c \
38    ../../sparc/shared/startup/bspgetworkarea.c ../../shared/sbrk.c \
39    startup/setvec.c \
40    startup/spurious.c startup/bspidle.S startup/bspdelay.c \
41    ../../shared/bspinit.c ../../sparc/shared/startup/early_malloc.c
42libbsp_a_SOURCES += startup/bspreset.c
43libbsp_a_SOURCES += startup/cpucounter.c
44
45# ISR Handler
46libbsp_a_SOURCES += ../../sparc/shared/cpu.c
47libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
48# gnatsupp
49libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
50include_bsp_HEADERS = ../shared/include/gnatcommon.h
51# AMBA bus
52include_HEADERS += include/amba.h
53include_HEADERS += ../../sparc/shared/include/ambapp.h
54include_HEADERS += ../../sparc/shared/include/ambapp_ids.h
55include_HEADERS += ../../sparc/shared/include/grlib.h
56libbsp_a_SOURCES += amba/amba.c
57libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
58libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_alloc.c
59libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_count.c
60libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_depth.c
61libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_find_by_idx.c
62libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_freq.c
63libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_parent.c
64libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_old.c
65libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
66libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
67# console
68libbsp_a_SOURCES += ../../shared/console-termios.c
69libbsp_a_SOURCES += console/console.c
70# debugio
71libbsp_a_SOURCES += console/printk_support.c
72# clock
73libbsp_a_SOURCES += clock/ckinit.c
74libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
75# IRQ
76include_bsp_HEADERS += \
77    ../../shared/include/irq-generic.h \
78    ../../shared/include/irq-info.h \
79    include/bsp/irq.h
80libbsp_a_SOURCES += \
81    startup/eirq.c \
82    ../../sparc/shared/irq/irq-shared.c \
83    ../../shared/src/irq-default-handler.c \
84    ../../shared/src/irq-generic.c \
85    ../../shared/src/irq-info.c \
86    ../../shared/src/irq-legacy.c \
87    ../../shared/src/irq-server.c \
88    ../../shared/src/irq-shell.c
89# PCI
90include_HEADERS += ../../sparc/shared/include/pci.h
91libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
92
93# B1553BRM
94include_HEADERS += ../../sparc/shared/include/b1553brm.h \
95    ../../sparc/shared/include/b1553brm_pci.h
96libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \
97    ../../sparc/shared/1553/b1553brm_pci.c
98
99# CAN
100include_HEADERS += ../../sparc/shared/include/occan.h \
101    ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h
102libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
103    ../../sparc/shared/can/occan_pci.c  ../../sparc/shared/can/grcan.c
104
105# SpaceWire
106include_HEADERS += ../../sparc/shared/include/grspw.h \
107    ../../sparc/shared/include/grspw_pci.h
108libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \
109    ../../sparc/shared/spw/grspw_pci.c
110
111# UART
112include_HEADERS += ../../sparc/shared/include/apbuart.h \
113    ../../sparc/shared/include/apbuart_pci.h \
114    ../../sparc/shared/include/apbuart_termios.h
115libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \
116    ../../sparc/shared/uart/apbuart_pci.c \
117    ../../sparc/shared/uart/apbuart_termios.c
118
119# I2CMST
120include_HEADERS += ../../sparc/shared/include/i2cmst.h
121libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
122
123# timer
124libbsp_a_SOURCES += timer/timer.c
125
126# Cache
127libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
128libbsp_a_SOURCES += include/cache_.h
129libbsp_a_CPPFLAGS = -I$(srcdir)/include
130
131if HAS_SMP
132libbsp_a_SOURCES += startup/bspsmp.c
133endif
134
135if HAS_NETWORKING
136noinst_PROGRAMS += leon_smc91111.rel
137leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
138leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
139leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
140leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
141endif
142
143if HAS_NETWORKING
144noinst_PROGRAMS += leon_open_eth.rel
145leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
146leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
147leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
148leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
149endif
150
151if HAS_NETWORKING
152noinst_PROGRAMS += leon_greth.rel
153leon_greth_rel_SOURCES = leon_greth/leon_greth.c
154leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
155leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
156leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
157endif
158
159EXTRA_DIST = shmsupp/README
160if HAS_MP
161# shmsupp
162libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
163    shmsupp/mpisr.c
164endif
165
166libbsp_a_LIBADD = \
167    ../../../libcpu/@RTEMS_CPU@/access.rel \
168    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
169    ../../../libcpu/@RTEMS_CPU@/syscall.rel
170
171if HAS_NETWORKING
172libbsp_a_LIBADD += leon_open_eth.rel
173libbsp_a_LIBADD += leon_greth.rel
174libbsp_a_LIBADD += leon_smc91111.rel
175endif
176
177EXTRA_DIST += times
178
179include $(srcdir)/preinstall.am
180include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.