source: rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am @ 9bd7b3b1

4.115
Last change on this file since 9bd7b3b1 was 9bd7b3b1, checked in by Daniel Hellstrom <daniel@…>, on May 20, 2014 at 3:45:07 PM

SPARC: Fatal_halt use source and exit codes

The Fatal_halt handler now have two options, either halt
as before or enter system error state to return to
debugger or simulator. The exit-code is now also
propagated to the debugger which is very useful for
testing.

The CPU_Fatal_halt handler was split up into two, since
the only the LEON3 support the CPU power down.

The LEON3 halt now uses the power-down instruction to save
CPU power. This doesn't stop a potential watch-dog timer
from expiring.

  • Property mode set to 100644
File size: 6.0 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
63libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_exit.c
64libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_halt.c
65
66# ISR Handler
67libbsp_a_SOURCES += ../../sparc/shared/cpu.c
68libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
69# gnatsupp
70libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
71include_bsp_HEADERS = ../shared/include/gnatcommon.h
72# console
73libbsp_a_SOURCES += console/console.c console/debugputs.c
74# clock
75libbsp_a_SOURCES += clock/ckinit.c
76libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
77# IRQ
78include_bsp_HEADERS += \
79    ../../shared/include/irq-generic.h \
80    ../../shared/include/irq-info.h \
81    include/bsp/irq.h
82libbsp_a_SOURCES += \
83    ../../sparc/shared/irq/irq-shared.c \
84    ../../shared/src/irq-default-handler.c \
85    ../../shared/src/irq-generic.c \
86    ../../shared/src/irq-info.c \
87    ../../shared/src/irq-legacy.c \
88    ../../shared/src/irq-server.c \
89    ../../shared/src/irq-shell.c
90
91# AMBA bus
92include_HEADERS += ../../sparc/shared/include/ambapp.h
93include_HEADERS += ../../sparc/shared/include/ambapp_ids.h
94include_HEADERS += ../../sparc/shared/include/grlib.h
95libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
96libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_alloc.c
97libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_count.c
98libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_depth.c
99libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_find_by_idx.c
100libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_freq.c
101libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_parent.c
102libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_old.c
103libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
104libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
105# PCI
106libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
107# RASTA Kit
108libbsp_a_SOURCES += rasta/rasta.c
109# Companion Chip Kit
110libbsp_a_SOURCES += cchip/cchip.c
111# B1553BRM
112libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \
113    ../../sparc/shared/1553/b1553brm_pci.c \
114    ../../sparc/shared/1553/b1553brm_rasta.c
115# CAN
116libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
117    ../../sparc/shared/can/occan_pci.c \
118    ../../sparc/shared/can/grcan.c \
119    ../../sparc/shared/can/grcan_rasta.c
120# SpaceWire
121libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \
122    ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c
123# UART (RAW)
124libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \
125    ../../sparc/shared/uart/apbuart_pci.c \
126    ../../sparc/shared/uart/apbuart_rasta.c
127# I2CMST
128include_HEADERS += ../../sparc/shared/include/i2cmst.h
129libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
130
131# timer
132libbsp_a_SOURCES += timer/timer.c
133
134if HAS_SMP
135libbsp_a_SOURCES += ../../shared/bspsmp.c
136libbsp_a_SOURCES += ../../shared/bspsmpgetcurrentprocessor.c
137endif
138
139if HAS_NETWORKING
140noinst_PROGRAMS += leon_smc91111.rel
141leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
142leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
143leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
144leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
145endif
146
147if HAS_NETWORKING
148noinst_PROGRAMS += leon_open_eth.rel
149leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
150leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
151leon_open_eth_rel_CPPFLAGS +=  -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
152leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
153endif
154
155libbsp_a_LIBADD = \
156    ../../../libcpu/@RTEMS_CPU@/access.rel \
157    ../../../libcpu/@RTEMS_CPU@/cache.rel \
158    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
159    ../../../libcpu/@RTEMS_CPU@/syscall.rel
160
161if HAS_NETWORKING
162libbsp_a_LIBADD += leon_open_eth.rel
163libbsp_a_LIBADD += leon_smc91111.rel
164endif
165
166EXTRA_DIST = times
167
168include $(srcdir)/preinstall.am
169include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.