source: rtems/c/src/lib/libbsp/arm/tms570/Makefile.am @ 38404cb

Last change on this file since 38404cb was 38404cb, checked in by Premysl Houdek <kom541000@…>, on Nov 12, 2015 at 10:11:32 PM

bsp/tms570: separate Flash variants to one which boots directly and one for boot loader.

The default tms570ls3137_hdk variant is for building RTEMS
application image starting directly from start of Flash.

Variant tms570ls3137_hdk_with_loader skips 256kB at start
of Flash to allow use with application loader.

Signed-off-by: Pavel Pisa <pisa@…>

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