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

4.11
Last change on this file since 8df1f408 was 8df1f408, checked in by Christian Mauderer <Christian.Mauderer@…>, on Jun 2, 2014 at 2:31:51 PM

score/sparc: Add support for paravirtualization

Guest systems in paravirtualization environments run usually in user
mode. Thus it is not possible to directly access the PSR and TBR
registers. Use functions instead of inline assembler to access these
registers if RTEMS_PARAVIRT is defined.

  • Property mode set to 100644
File size: 5.7 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 += console/console.c
69# debugio
70libbsp_a_SOURCES += console/printk_support.c
71# clock
72libbsp_a_SOURCES += clock/ckinit.c
73libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
74# IRQ
75include_bsp_HEADERS += \
76    ../../shared/include/irq-generic.h \
77    ../../shared/include/irq-info.h \
78    include/bsp/irq.h
79libbsp_a_SOURCES += \
80    startup/eirq.c \
81    ../../sparc/shared/irq/irq-shared.c \
82    ../../shared/src/irq-default-handler.c \
83    ../../shared/src/irq-generic.c \
84    ../../shared/src/irq-info.c \
85    ../../shared/src/irq-legacy.c \
86    ../../shared/src/irq-server.c \
87    ../../shared/src/irq-shell.c
88# PCI
89include_HEADERS += ../../sparc/shared/include/pci.h
90libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
91
92# B1553BRM
93include_HEADERS += ../../sparc/shared/include/b1553brm.h \
94    ../../sparc/shared/include/b1553brm_pci.h
95libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \
96    ../../sparc/shared/1553/b1553brm_pci.c
97
98# CAN
99include_HEADERS += ../../sparc/shared/include/occan.h \
100    ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h
101libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
102    ../../sparc/shared/can/occan_pci.c  ../../sparc/shared/can/grcan.c
103
104# SpaceWire
105include_HEADERS += ../../sparc/shared/include/grspw.h \
106    ../../sparc/shared/include/grspw_pci.h
107libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \
108    ../../sparc/shared/spw/grspw_pci.c
109
110# UART
111include_HEADERS += ../../sparc/shared/include/apbuart.h \
112    ../../sparc/shared/include/apbuart_pci.h
113libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \
114    ../../sparc/shared/uart/apbuart_pci.c
115
116# I2CMST
117include_HEADERS += ../../sparc/shared/include/i2cmst.h
118libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
119
120# timer
121libbsp_a_SOURCES += timer/timer.c
122
123# Cache
124libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
125libbsp_a_SOURCES += include/cache_.h
126libbsp_a_CPPFLAGS = -I$(srcdir)/include
127
128if HAS_SMP
129libbsp_a_SOURCES += startup/bspsmp.c
130endif
131
132if HAS_NETWORKING
133noinst_PROGRAMS += leon_smc91111.rel
134leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
135leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
136leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
137leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
138endif
139
140if HAS_NETWORKING
141noinst_PROGRAMS += leon_open_eth.rel
142leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
143leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
144leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
145leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
146endif
147
148if HAS_NETWORKING
149noinst_PROGRAMS += leon_greth.rel
150leon_greth_rel_SOURCES = leon_greth/leon_greth.c
151leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
152leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
153leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
154endif
155
156EXTRA_DIST = shmsupp/README
157if HAS_MP
158# shmsupp
159libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
160    shmsupp/mpisr.c
161endif
162
163libbsp_a_LIBADD = \
164    ../../../libcpu/@RTEMS_CPU@/access.rel \
165    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
166    ../../../libcpu/@RTEMS_CPU@/syscall.rel
167
168if HAS_NETWORKING
169libbsp_a_LIBADD += leon_open_eth.rel
170libbsp_a_LIBADD += leon_greth.rel
171libbsp_a_LIBADD += leon_smc91111.rel
172endif
173
174EXTRA_DIST += times
175
176include $(srcdir)/preinstall.am
177include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.