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

4.115
Last change on this file since e870941 was e870941, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 4, 2014 at 8:38:27 AM

libmisc: More useful default configuration

The dummy.c was a de-facto default configuration. Rename it to
default-configuration.c. Use unlimited objects and the stack checker.
This makes it easier for new RTEMS users which will likely use this file
if they just work with the usual main() function as the application
entry point. Provide proper arguments for main() using the BSP command
line. Add spare user extensions and drivers.

Do not initialize the network by default. Delete bspinit.c.

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