source: rtems/c/src/lib/libbsp/arm/tms570/Makefile.am @ 991fdb33

4.115
Last change on this file since 991fdb33 was 991fdb33, checked in by Martin Galvan <martin.galvan@…>, on 02/26/15 at 20:31:27

ARM: Add BSP_START_NEEDS_REGISTER_INITIALIZATION

This patch adds the macro BSP_START_NEEDS_REGISTER_INITIALIZATION and
three hooks for BSP-specific register init code to arm/shared/start.S.
Said hooks are bsp_start_init_registers_core (intended for initializing
the ARM core registers), bsp_start_init_registers_banked_fiq (for the
FIQ mode banked registers) and bsp_start_init_registers_vfp (for the FPU
registers). BSP_START_NEEDS_REGISTER_INITIALIZATION would be defined in
a BSP's configure.ac (so that it appears in its bspopts.h).

This patch also adds the register init code required by the TMS570.
We've tested it with the tms570ls3137_hdk.cfg config and it works fine.

  • Property mode set to 100644
File size: 3.8 KB
Line 
1##
2#
3# @file makefile.am
4#
5# @brief Makefile of LibBSP for the TMS570 boards.
6#
7
8ACLOCAL_AMFLAGS = -I ../../../../aclocal
9
10include $(top_srcdir)/../../../../automake/compile.am
11
12include_bspdir = $(includedir)/bsp
13
14dist_project_lib_DATA = bsp_specs
15
16# ----------------------------
17# ------  Headers
18# ----------------------------
19
20include_HEADERS = include/bsp.h
21
22nodist_include_HEADERS = ../../shared/include/coverhd.h
23nodist_include_HEADERS += include/bspopts.h
24
25nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
26
27include_bsp_HEADERS =
28include_bsp_HEADERS += ../../shared/include/utility.h
29include_bsp_HEADERS += ../../shared/include/irq-generic.h
30include_bsp_HEADERS += ../../shared/include/irq-info.h
31include_bsp_HEADERS += ../../shared/include/stackalloc.h
32include_bsp_HEADERS += ../../shared/include/uart-output-char.h
33include_bsp_HEADERS += ../shared/include/start.h
34include_bsp_HEADERS += include/tms570.h
35include_bsp_HEADERS += include/tms570-sci.h
36include_bsp_HEADERS += include/irq.h
37include_bsp_HEADERS += include/tms570-rti.h
38include_bsp_HEADERS += include/tms570-vim.h
39include_bsp_HEADERS += include/tms570-pom.h
40include_bsp_HEADERS += include/tms570-sci-driver.h
41include_bsp_HEADERS += include/system-clocks.h
42
43include_HEADERS += ../../shared/include/tm27.h
44
45# ----------------------------
46# ------  Data
47# ----------------------------
48
49noinst_LIBRARIES = libbspstart.a
50
51libbspstart_a_SOURCES = ../shared/start/start.S
52
53project_lib_DATA = start.$(OBJEXT)
54project_lib_DATA += startup/linkcmds
55
56EXTRA_DIST =
57EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk
58EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_sdram
59EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_intram
60
61# ----------------------------
62# ------  LibBSP
63# ----------------------------
64
65noinst_LIBRARIES += libbsp.a
66
67libbsp_a_SOURCES =
68libbsp_a_CPPFLAGS =
69libbsp_a_LIBADD =
70
71# Shared
72libbsp_a_SOURCES += ../../shared/bootcard.c
73libbsp_a_SOURCES += ../../shared/bspclean.c
74libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
75libbsp_a_SOURCES += ../../shared/bsplibc.c
76libbsp_a_SOURCES += ../../shared/bsppost.c
77libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
78libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
79libbsp_a_SOURCES += ../../shared/sbrk.c
80libbsp_a_SOURCES += ../../shared/src/stackalloc.c
81libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
82
83# Startup
84libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
85libbsp_a_SOURCES += ../shared/startup/bsp-start-init-registers.S
86libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
87libbsp_a_SOURCES += startup/bspreset.c
88libbsp_a_SOURCES += startup/bspstart.c
89
90# POM
91libbsp_a_SOURCES += pom/tms570-pom.c
92
93# IRQ
94libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
95libbsp_a_SOURCES += ../../shared/src/irq-generic.c
96libbsp_a_SOURCES += ../../shared/src/irq-info.c
97libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
98libbsp_a_SOURCES += ../../shared/src/irq-server.c
99libbsp_a_SOURCES += ../../shared/src/irq-shell.c
100libbsp_a_SOURCES += irq/irq.c
101
102# Console
103libbsp_a_SOURCES += ../../shared/console-termios.c
104libbsp_a_SOURCES += console/printk-support.c
105libbsp_a_SOURCES += console/tms570-sci.c
106
107# Clock
108libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
109libbsp_a_SOURCES += clock/clock.c
110libbsp_a_SOURCES += clock/benchmark_timer.c
111
112# RTC
113
114# GPIO
115
116# Timer
117
118# Benchmark Timer
119
120# Misc
121libbsp_a_SOURCES += misc/cpucounterread.c
122
123# Watchdog
124
125# Cache
126libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
127libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
128libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
129
130# Start hooks
131libbsp_a_SOURCES += startup/bspstarthooks.c
132
133# ----------------------------
134# ------  Special Rules
135# ----------------------------
136
137DISTCLEANFILES = include/bspopts.h
138
139include $(srcdir)/preinstall.am
140include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.