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

4.104.115
Last change on this file since b4a52b1 was 4c94ffff, checked in by Joel Sherrill <joel.sherrill@…>, on 05/15/08 at 15:54:15

2008-05-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, startup/bspstart.c: Add capability for bootcard.c BSP Initialization Framework to ask the BSP where it has memory for the RTEMS Workspace and C Program Heap. These collectively are referred to as work area. If the BSP supports this, then it does not have to include code to split the available memory between the two areas. This reduces the amount of code in the BSP specific bspstart.c file. Additionally, the shared framework can initialize the C Library, call rtems_debug_enable(), and dirty the work area memory. Until most/all BSPs support this new capability, if the BSP supports this, it should call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac. When the transition is complete, this autoconf macro can be removed.
  • Property mode set to 100644
File size: 4.1 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10dist_project_lib_DATA = bsp_specs
11
12include_HEADERS = include/bsp.h
13include_HEADERS += include/tm27.h
14include_HEADERS += ../../sparc/shared/include/debug_defs.h
15
16nodist_include_HEADERS = include/bspopts.h
17DISTCLEANFILES = include/bspopts.h
18
19noinst_PROGRAMS =
20
21# wrapup is the one that actually builds and installs the library
22# from the individual .rel files built in other directories
23SUBDIRS = . tools
24
25include_HEADERS += include/leon.h
26include_HEADERS += include/coverhd.h
27
28EXTRA_DIST = ../../sparc/shared/start.S
29start.$(OBJEXT): ../../sparc/shared/start.S
30        $(CPPASCOMPILE) -o $@ -c $<
31
32project_lib_DATA = start.$(OBJEXT)
33
34dist_project_lib_DATA += startup/linkcmds
35
36startup_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
37    ../../shared/bsppost.c startup/bspstart.c \
38    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
39    startup/spurious.c startup/ithread.S
40
41gnatsupp_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
42
43include_HEADERS += include/amba.h
44include_HEADERS += ../../sparc/shared/include/ambapp.h
45
46amba_SOURCES = amba/amba.c ../../sparc/shared/amba/ambapp.c
47console_SOURCES = console/console.c
48debugio_SOURCES = console/debugputs.c
49clock_SOURCES = clock/ckinit.c
50
51# PCI
52include_HEADERS += ../../sparc/shared/include/pci.h
53pci_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
54
55# B1553BRM
56include_HEADERS += ../../sparc/shared/include/b1553brm.h \
57    ../../sparc/shared/include/b1553brm_pci.h
58brm_SOURCES = ../../sparc/shared/1553/b1553brm.c \
59    ../../sparc/shared/1553/b1553brm_pci.c
60
61# CAN
62include_HEADERS += ../../sparc/shared/include/occan.h \
63    ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h
64can_SOURCES = ../../sparc/shared/can/occan.c \
65    ../../sparc/shared/can/occan_pci.c  ../../sparc/shared/can/grcan.c
66
67# SpaceWire
68include_HEADERS += ../../sparc/shared/include/grspw.h \
69    ../../sparc/shared/include/grspw_pci.h
70spw_SOURCES = ../../sparc/shared/spw/grspw.c \
71    ../../sparc/shared/spw/grspw_pci.c
72
73# UART
74include_HEADERS += ../../sparc/shared/include/apbuart.h \
75    ../../sparc/shared/include/apbuart_pci.h
76uart_SOURCES = ../../sparc/shared/uart/apbuart.c \
77    ../../sparc/shared/uart/apbuart_pci.c
78
79# I2CMST
80include_HEADERS += ../../sparc/shared/include/i2cmst.h
81i2cmst_SOURCES = ../../sparc/shared/i2c/i2cmst.c
82
83timer_SOURCES = timer/timer.c
84
85if HAS_NETWORKING
86noinst_PROGRAMS += leon_smc91111.rel
87leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
88leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
89leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
90leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
91endif
92
93if HAS_NETWORKING
94noinst_PROGRAMS += leon_open_eth.rel
95leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
96leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
97leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
98leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99endif
100
101if HAS_NETWORKING
102noinst_PROGRAMS += leon_greth.rel
103leon_greth_rel_SOURCES = leon_greth/leon_greth.c
104leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
105leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
106leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
107endif
108
109if HAS_MP
110EXTRA_DIST += shmsupp/README
111shmsupp_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
112    shmsupp/mpisr.c
113endif
114
115noinst_LIBRARIES = libbsp.a
116libbsp_a_SOURCES = $(startup_SOURCES) $(gnatsupp_SOURCES) $(amba_SOURCES) \
117    $(console_SOURCES) $(debugio_SOURCES) $(clock_SOURCES) $(pci_SOURCES) \
118    $(brm_SOURCES) $(can_SOURCES) $(spw_SOURCES) $(uart_SOURCES) \
119    $(i2cmst_SOURCES) $(timer_SOURCES) $(shmsupp_SOURCES)
120
121libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
122    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
123    ../../../libcpu/@RTEMS_CPU@/syscall.rel
124
125if HAS_NETWORKING
126libbsp_a_LIBADD += leon_open_eth.rel
127libbsp_a_LIBADD += leon_greth.rel
128libbsp_a_LIBADD += leon_smc91111.rel
129endif
130
131EXTRA_DIST += times
132
133include $(srcdir)/preinstall.am
134include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.