source: rtems/c/src/lib/libbsp/sparc/leon2/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: 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 += include/rasta.h
12include_HEADERS += include/cchip.h
13include_HEADERS += ../../sparc/shared/include/grspw.h
14include_HEADERS += ../../sparc/shared/include/grspw_pci.h
15include_HEADERS += ../../sparc/shared/include/grspw_rasta.h
16include_HEADERS += ../../sparc/shared/include/occan.h
17include_HEADERS += ../../sparc/shared/include/occan_pci.h
18include_HEADERS += ../../sparc/shared/include/grcan.h
19include_HEADERS += ../../sparc/shared/include/grcan_rasta.h
20include_HEADERS += ../../sparc/shared/include/apbuart.h
21include_HEADERS += ../../sparc/shared/include/apbuart_pci.h
22include_HEADERS += ../../sparc/shared/include/apbuart_rasta.h
23include_HEADERS += ../../sparc/shared/include/b1553brm.h
24include_HEADERS += ../../sparc/shared/include/b1553brm_pci.h
25include_HEADERS += ../../sparc/shared/include/b1553brm_rasta.h
26include_HEADERS += ../../sparc/shared/include/debug_defs.h
27include_HEADERS += ../../sparc/shared/include/pci.h
28
29nodist_include_HEADERS = include/bspopts.h
30nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
31DISTCLEANFILES = include/bspopts.h
32
33noinst_PROGRAMS =
34
35include_HEADERS += include/leon.h
36include_HEADERS += ../../shared/include/coverhd.h
37
38noinst_LIBRARIES = libbspstart.a
39libbspstart_a_SOURCES = ../../sparc/shared/start/start.S
40project_lib_DATA = start.$(OBJEXT)
41
42dist_project_lib_DATA += startup/linkcmds ../shared/startup/linkcmds.base
43
44noinst_LIBRARIES += libbsp.a
45libbsp_a_SOURCES =
46
47# startup
48libbsp_a_SOURCES += ../../shared/bspclean.c
49libbsp_a_SOURCES += ../../shared/bsplibc.c
50libbsp_a_SOURCES += ../../shared/bsppost.c
51libbsp_a_SOURCES += startup/bsppredriver.c
52libbsp_a_SOURCES += startup/bspstart.c
53libbsp_a_SOURCES += ../../sparc/shared/bsppretaskinghook.c
54libbsp_a_SOURCES += ../../sparc/shared/startup/bspgetworkarea.c
55libbsp_a_SOURCES += ../../shared/bootcard.c
56libbsp_a_SOURCES += ../../shared/sbrk.c
57libbsp_a_SOURCES += startup/setvec.c
58libbsp_a_SOURCES += startup/spurious.c
59libbsp_a_SOURCES += startup/bspidle.c
60libbsp_a_SOURCES += startup/bspdelay.c
61libbsp_a_SOURCES += ../../sparc/shared/startup/early_malloc.c
62libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_exit.c
63libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_halt.c
64
65# ISR Handler
66libbsp_a_SOURCES += ../../sparc/shared/cpu.c
67libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
68# gnatsupp
69libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
70include_bsp_HEADERS = ../shared/include/gnatcommon.h
71# console
72libbsp_a_SOURCES += console/console.c console/debugputs.c
73# clock
74libbsp_a_SOURCES += clock/ckinit.c
75libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
76# IRQ
77include_bsp_HEADERS += \
78    ../../shared/include/irq-generic.h \
79    ../../shared/include/irq-info.h \
80    include/bsp/irq.h
81libbsp_a_SOURCES += \
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
90# AMBA bus
91include_HEADERS += ../../sparc/shared/include/ambapp.h
92include_HEADERS += ../../sparc/shared/include/ambapp_ids.h
93include_HEADERS += ../../sparc/shared/include/grlib.h
94libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
95libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_alloc.c
96libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_count.c
97libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_depth.c
98libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_find_by_idx.c
99libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_freq.c
100libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_parent.c
101libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_old.c
102libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
103libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
104# PCI
105libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
106# RASTA Kit
107libbsp_a_SOURCES += rasta/rasta.c
108# Companion Chip Kit
109libbsp_a_SOURCES += cchip/cchip.c
110# B1553BRM
111libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \
112    ../../sparc/shared/1553/b1553brm_pci.c \
113    ../../sparc/shared/1553/b1553brm_rasta.c
114# CAN
115libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
116    ../../sparc/shared/can/occan_pci.c \
117    ../../sparc/shared/can/grcan.c \
118    ../../sparc/shared/can/grcan_rasta.c
119# SpaceWire
120libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \
121    ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c
122# UART (RAW)
123libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \
124    ../../sparc/shared/uart/apbuart_pci.c \
125    ../../sparc/shared/uart/apbuart_rasta.c
126# I2CMST
127include_HEADERS += ../../sparc/shared/include/i2cmst.h
128libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
129
130# timer
131libbsp_a_SOURCES += timer/timer.c
132
133if HAS_SMP
134libbsp_a_SOURCES += ../../shared/bspsmp.c
135libbsp_a_SOURCES += ../../shared/bspsmpgetcurrentprocessor.c
136endif
137
138if HAS_NETWORKING
139noinst_PROGRAMS += leon_smc91111.rel
140leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
141leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
142leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
143leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
144endif
145
146if HAS_NETWORKING
147noinst_PROGRAMS += leon_open_eth.rel
148leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
149leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
150leon_open_eth_rel_CPPFLAGS +=  -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
151leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
152endif
153
154libbsp_a_LIBADD = \
155    ../../../libcpu/@RTEMS_CPU@/access.rel \
156    ../../../libcpu/@RTEMS_CPU@/cache.rel \
157    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
158    ../../../libcpu/@RTEMS_CPU@/syscall.rel
159
160if HAS_NETWORKING
161libbsp_a_LIBADD += leon_open_eth.rel
162libbsp_a_LIBADD += leon_smc91111.rel
163endif
164
165EXTRA_DIST = times
166
167include $(srcdir)/preinstall.am
168include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.