source: rtems/c/src/lib/libbsp/sparc/leon2/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.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 += ../../shared/bspinit.c
61libbsp_a_SOURCES += startup/bspdelay.c
62libbsp_a_SOURCES += ../../sparc/shared/startup/early_malloc.c
63
64# ISR Handler
65libbsp_a_SOURCES += ../../sparc/shared/cpu.c
66libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
67# gnatsupp
68libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
69include_bsp_HEADERS = ../shared/include/gnatcommon.h
70# console
71libbsp_a_SOURCES += console/console.c console/debugputs.c
72# clock
73libbsp_a_SOURCES += clock/ckinit.c
74libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
75# IRQ
76include_bsp_HEADERS += \
77    ../../shared/include/irq-generic.h \
78    ../../shared/include/irq-info.h \
79    include/bsp/irq.h
80libbsp_a_SOURCES += \
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
89# AMBA bus
90include_HEADERS += ../../sparc/shared/include/ambapp.h
91include_HEADERS += ../../sparc/shared/include/ambapp_ids.h
92include_HEADERS += ../../sparc/shared/include/grlib.h
93libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
94libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_alloc.c
95libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_count.c
96libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_depth.c
97libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_find_by_idx.c
98libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_freq.c
99libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_parent.c
100libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_old.c
101libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
102libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
103# PCI
104libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
105# RASTA Kit
106libbsp_a_SOURCES += rasta/rasta.c
107# Companion Chip Kit
108libbsp_a_SOURCES += cchip/cchip.c
109# B1553BRM
110libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \
111    ../../sparc/shared/1553/b1553brm_pci.c \
112    ../../sparc/shared/1553/b1553brm_rasta.c
113# CAN
114libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
115    ../../sparc/shared/can/occan_pci.c \
116    ../../sparc/shared/can/grcan.c \
117    ../../sparc/shared/can/grcan_rasta.c
118# SpaceWire
119libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \
120    ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c
121# UART (RAW)
122libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \
123    ../../sparc/shared/uart/apbuart_pci.c \
124    ../../sparc/shared/uart/apbuart_rasta.c
125# I2CMST
126include_HEADERS += ../../sparc/shared/include/i2cmst.h
127libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
128
129# timer
130libbsp_a_SOURCES += timer/timer.c
131
132if HAS_SMP
133libbsp_a_SOURCES += ../../shared/bspsmp.c
134libbsp_a_SOURCES += ../../shared/bspsmpgetcurrentprocessor.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
153libbsp_a_LIBADD = \
154    ../../../libcpu/@RTEMS_CPU@/access.rel \
155    ../../../libcpu/@RTEMS_CPU@/cache.rel \
156    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
157    ../../../libcpu/@RTEMS_CPU@/syscall.rel
158
159if HAS_NETWORKING
160libbsp_a_LIBADD += leon_open_eth.rel
161libbsp_a_LIBADD += leon_smc91111.rel
162endif
163
164EXTRA_DIST = times
165
166include $(srcdir)/preinstall.am
167include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.