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

4.115
Last change on this file since 20546ace was 20546ace, checked in by Joel Sherrill <joel.sherrill@…>, on 03/16/11 at 20:05:26

2011-03-16 Jennifer Averett <jennifer.averett@…>

PR 1729/cpukit

  • Makefile.am, configure.ac: Add next step in SMP support. This adds an allocated array of the Per_CPU structures to support multiple cpus vs a single instance of the structure which is still used if SMP support is disabled. Configuration support is also added to explicitly enable or disable SMP. But SMP can only be enabled for the CPUs which will support it initially -- SPARC and i386. With the stub BSP support, a BSP can be run as a single core SMP system from an RTEMS data structure standpoint.
  • Property mode set to 100644
File size: 4.3 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8
9include_bspdir = $(includedir)/bsp
10
11dist_project_lib_DATA = bsp_specs
12
13include_HEADERS = include/bsp.h
14include_HEADERS += include/tm27.h
15include_HEADERS += ../../sparc/shared/include/debug_defs.h
16
17nodist_include_HEADERS = include/bspopts.h
18nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
19DISTCLEANFILES = include/bspopts.h
20
21noinst_PROGRAMS =
22
23# wrapup is the one that actually builds and installs the library
24# from the individual .rel files built in other directories
25SUBDIRS = . tools
26
27include_HEADERS += include/leon.h
28include_HEADERS += ../../shared/include/coverhd.h
29
30noinst_LIBRARIES = libbspstart.a
31libbspstart_a_SOURCES = ../../sparc/shared/start.S
32project_lib_DATA = start.$(OBJEXT)
33
34dist_project_lib_DATA += startup/linkcmds ../shared/startup/linkcmds.base
35
36noinst_LIBRARIES += libbsp.a
37libbsp_a_SOURCES =
38
39# startup
40libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
41    ../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
42    ../../sparc/shared/bsppretaskinghook.c ../../shared/bsppredriverhook.c \
43    ../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \
44    startup/spurious.c startup/bspidle.S \
45    ../../shared/bspinit.c
46# ISR Handler
47libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
48# gnatsupp
49libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
50# amba
51include_HEADERS += include/amba.h
52include_HEADERS += ../../sparc/shared/include/ambapp.h
53libbsp_a_SOURCES += amba/amba.c ../../sparc/shared/amba/ambapp.c
54# console
55libbsp_a_SOURCES += console/console.c
56# debugio
57libbsp_a_SOURCES += console/debugputs.c
58# clock
59libbsp_a_SOURCES += clock/ckinit.c ../../../shared/clockdrv_shell.h
60# PCI
61include_HEADERS += ../../sparc/shared/include/pci.h
62libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
63
64# B1553BRM
65include_HEADERS += ../../sparc/shared/include/b1553brm.h \
66    ../../sparc/shared/include/b1553brm_pci.h
67libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \
68    ../../sparc/shared/1553/b1553brm_pci.c
69
70# CAN
71include_HEADERS += ../../sparc/shared/include/occan.h \
72    ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h
73libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
74    ../../sparc/shared/can/occan_pci.c  ../../sparc/shared/can/grcan.c
75
76# SpaceWire
77include_HEADERS += ../../sparc/shared/include/grspw.h \
78    ../../sparc/shared/include/grspw_pci.h
79libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \
80    ../../sparc/shared/spw/grspw_pci.c
81
82# UART
83include_HEADERS += ../../sparc/shared/include/apbuart.h \
84    ../../sparc/shared/include/apbuart_pci.h
85libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \
86    ../../sparc/shared/uart/apbuart_pci.c
87
88# I2CMST
89include_HEADERS += ../../sparc/shared/include/i2cmst.h
90libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
91
92# timer
93libbsp_a_SOURCES += timer/timer.c
94
95if HAS_SMP
96libbsp_a_SOURCES += ../../shared/smp/getcpuid.c ../../shared/smp/smp_stub.c
97endif
98
99if HAS_NETWORKING
100noinst_PROGRAMS += leon_smc91111.rel
101leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
102leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
103leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
104leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
105endif
106
107if HAS_NETWORKING
108noinst_PROGRAMS += leon_open_eth.rel
109leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
110leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
111leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
112leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
113endif
114
115if HAS_NETWORKING
116noinst_PROGRAMS += leon_greth.rel
117leon_greth_rel_SOURCES = leon_greth/leon_greth.c
118leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
119leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
120leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
121endif
122
123EXTRA_DIST = shmsupp/README
124if HAS_MP
125# shmsupp
126libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
127    shmsupp/mpisr.c
128endif
129
130libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
131    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
132    ../../../libcpu/@RTEMS_CPU@/syscall.rel
133
134if HAS_NETWORKING
135libbsp_a_LIBADD += leon_open_eth.rel
136libbsp_a_LIBADD += leon_greth.rel
137libbsp_a_LIBADD += leon_smc91111.rel
138endif
139
140EXTRA_DIST += times
141
142include $(srcdir)/preinstall.am
143include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.