source: rtems/c/src/lib/libbsp/arm/tms570/Makefile.am @ 28fda62

Last change on this file since 28fda62 was e629076, checked in by Chris Johns <chrisj@…>, on Nov 29, 2016 at 10:19:05 PM

libdebugger: Build for ARM's without a CP15.

  • Property mode set to 100644
File size: 7.1 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
13include_libcpudir = $(includedir)/libcpu
14
15include_bsp_ti_herculesdir = $(includedir)/bsp/ti_herc
16
17dist_project_lib_DATA = bsp_specs
18
19# ----------------------------
20# ------  Headers
21# ----------------------------
22
23include_HEADERS = include/bsp.h
24
25nodist_include_HEADERS = ../../shared/include/coverhd.h
26nodist_include_HEADERS += include/bspopts.h
27
28nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
29
30include_bsp_HEADERS =
31include_bsp_HEADERS += ../../shared/include/utility.h
32include_bsp_HEADERS += ../../shared/include/irq-generic.h
33include_bsp_HEADERS += ../../shared/include/irq-info.h
34include_bsp_HEADERS += ../../shared/include/stackalloc.h
35include_bsp_HEADERS += ../../shared/include/uart-output-char.h
36include_bsp_HEADERS += ../shared/include/start.h
37include_bsp_HEADERS += include/tms570.h
38include_bsp_HEADERS += include/tms570-sci.h
39include_bsp_HEADERS += include/irq.h
40include_bsp_HEADERS += include/tms570-rti.h
41include_bsp_HEADERS += include/tms570-vim.h
42include_bsp_HEADERS += include/tms570-pom.h
43include_bsp_HEADERS += include/tms570-sci-driver.h
44include_bsp_HEADERS += include/system-clocks.h
45include_bsp_HEADERS += include/tms570-pinmux.h
46
47include_bsp_HEADERS += include/tms570-pins.h
48include_bsp_HEADERS += include/tms570ls3137zwt-pins.h
49
50include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h
51
52include_bsp_ti_hercules_HEADERS = include/ti_herc/reg_adc.h
53include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_ccmsr.h
54include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_crc.h
55include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dcan.h
56include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dcc.h
57include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dma.h
58include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dmm.h
59include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_efuse.h
60include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emacc.h
61include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emacm.h
62include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emif.h
63include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_esm.h
64include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_flash.h
65include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_flex_ray.h
66include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_gio.h
67include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_htu.h
68include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_i2c.h
69include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_iomm.h
70include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_lin.h
71include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_mdio.h
72include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_n2het.h
73include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pbist.h
74include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pll.h
75include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pmm.h
76include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_rti.h
77include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_rtp.h
78include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sci.h
79include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_tcr.h
80include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_tcram.h
81include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_vim.h
82include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pom.h
83include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_spi.h
84include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_stc.h
85include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sys.h
86include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sys2.h
87include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pcr.h
88
89include_HEADERS += ../../shared/include/tm27.h
90
91# ----------------------------
92# ------  Data
93# ----------------------------
94
95noinst_LIBRARIES = libbspstart.a
96
97libbspstart_a_SOURCES = ../shared/start/start.S
98
99project_lib_DATA = start.$(OBJEXT)
100project_lib_DATA += startup/linkcmds
101
102EXTRA_DIST =
103EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk
104EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_with_loader
105EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_sdram
106EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_intram
107
108# ----------------------------
109# ------  LibBSP
110# ----------------------------
111
112noinst_LIBRARIES += libbsp.a
113
114libbsp_a_SOURCES =
115libbsp_a_CPPFLAGS =
116libbsp_a_LIBADD =
117
118# Shared
119libbsp_a_SOURCES += ../../shared/bootcard.c
120libbsp_a_SOURCES += ../../shared/bspclean.c
121libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
122libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
123libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
124libbsp_a_SOURCES += ../../shared/sbrk.c
125libbsp_a_SOURCES += ../../shared/src/stackalloc.c
126libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
127libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
128libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
129
130# Startup
131libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
132libbsp_a_SOURCES += ../shared/startup/bsp-start-init-registers.S
133libbsp_a_SOURCES += startup/bspreset.c
134libbsp_a_SOURCES += startup/bspstart.c
135
136# POM
137libbsp_a_SOURCES += pom/tms570-pom.c
138
139# IRQ
140libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
141libbsp_a_SOURCES += ../../shared/src/irq-generic.c
142libbsp_a_SOURCES += ../../shared/src/irq-info.c
143libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
144libbsp_a_SOURCES += ../../shared/src/irq-server.c
145libbsp_a_SOURCES += ../../shared/src/irq-shell.c
146libbsp_a_SOURCES += irq/irq.c
147
148# Console
149libbsp_a_SOURCES += ../../shared/console-termios.c
150libbsp_a_SOURCES += console/printk-support.c
151libbsp_a_SOURCES += console/tms570-sci.c
152
153# Clock
154libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
155libbsp_a_SOURCES += clock/clock.c
156libbsp_a_SOURCES += clock/benchmark_timer.c
157
158# RTC
159
160# GPIO
161libbsp_a_SOURCES += pinmux/pinmux.c
162# Timer
163
164# Benchmark Timer
165
166# Misc
167libbsp_a_SOURCES += misc/cpucounterread.c
168
169# Watchdog
170
171# Cache
172libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
173libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
174libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
175
176if TMS570_USE_HWINIT_STARTUP
177libbsp_a_SOURCES += hwinit/tms570_sys_core.S
178libbsp_a_SOURCES += hwinit/fail_notification.c
179libbsp_a_SOURCES += hwinit/init_emif_sdram.c
180libbsp_a_SOURCES += hwinit/init_esm.c
181libbsp_a_SOURCES += hwinit/init_pinmux.c
182libbsp_a_SOURCES += hwinit/init_system.c
183libbsp_a_SOURCES += hwinit/tms570_selftest.c
184libbsp_a_SOURCES += hwinit/tms570_selftest_par_can.c
185libbsp_a_SOURCES += hwinit/tms570_selftest_par_mibspi.c
186libbsp_a_SOURCES += hwinit/tms570_selftest_par_std.c
187libbsp_a_SOURCES += hwinit/tms570_selftest_parity.c
188libbsp_a_SOURCES += hwinit/tms570_tcram_tests.c
189
190include_bsp_HEADERS += hwinit/tms570_selftest_parity.h
191include_bsp_HEADERS += hwinit/tms570_hwinit.h
192include_bsp_HEADERS += hwinit/tms570_selftest.h
193
194# Start hooks
195libbsp_a_SOURCES += hwinit/bspstarthooks-hwinit.c
196else
197# Start hooks
198libbsp_a_SOURCES += startup/bspstarthooks.c
199endif
200
201# ----------------------------
202# ------  Special Rules
203# ----------------------------
204
205DISTCLEANFILES = include/bspopts.h
206
207include $(srcdir)/preinstall.am
208include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.