source: rtems/c/src/lib/libbsp/arm/tms570/Makefile.am @ 4407ee6

4.11
Last change on this file since 4407ee6 was 4407ee6, checked in by Premysl Houdek <kom541000@…>, on Aug 20, 2014 at 3:24:23 PM

BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137)

Included variants:

tms570ls3137_hdk_intram - place code and data into internal SRAM
tms570ls3137_hdk_sdram - place code into external SDRAM and data to SRAM
tms570ls3137_hdk - variant prepared for stand-alone RTEMS aplication

stored and running directly from flash. Not working yet.

Chip initialization code not included in BSP.
External startup generated by TI's HalCoGen? was used for
testing and debugging.

More information about TMS570 BSP can be found at

http://www.rtems.org/wiki/index.php/Tms570

Patch version 2

  • most of the formatting suggestion applied.
  • BSP converted to use clock shell
  • console driver "set attributes" tested. Baudrate change working

Patch version 3

  • more formatting changes.
  • removed leftover defines and test functions

Todo:

refactor header files (name register fields)

  • Property mode set to 100644
File size: 3.6 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/tod.h
34include_bsp_HEADERS += ../shared/include/start.h
35include_bsp_HEADERS += include/tms570.h
36include_bsp_HEADERS += include/tms570-sci.h
37include_bsp_HEADERS += include/irq.h
38include_bsp_HEADERS += include/tms570-rti.h
39include_bsp_HEADERS += include/tms570-vim.h
40include_bsp_HEADERS += include/tms570-pom.h
41include_bsp_HEADERS += include/tms570-sci-driver.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
81
82# Startup
83libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
84libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
85libbsp_a_SOURCES += startup/bspreset.c
86libbsp_a_SOURCES += startup/bspstart.c
87
88# POM
89libbsp_a_SOURCES += pom/tms570-pom.c
90
91# IRQ
92libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
93libbsp_a_SOURCES += ../../shared/src/irq-generic.c
94libbsp_a_SOURCES += ../../shared/src/irq-info.c
95libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
96libbsp_a_SOURCES += ../../shared/src/irq-server.c
97libbsp_a_SOURCES += ../../shared/src/irq-shell.c
98libbsp_a_SOURCES += irq/irq.c
99
100# Console
101libbsp_a_SOURCES += ../../shared/console-termios.c
102libbsp_a_SOURCES += console/printk-support.c
103libbsp_a_SOURCES += console/tms570-sci.c
104
105# Clock
106libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
107libbsp_a_SOURCES += clock/clock.c
108
109# RTC
110
111# GPIO
112
113# Timer
114
115# Benchmark Timer
116
117# Misc
118
119# Watchdog
120
121# Start hooks
122libbsp_a_SOURCES += startup/bspstarthooks.c
123
124# Network
125
126if HAS_NETWORKING
127
128noinst_PROGRAMS = network.rel
129
130network_rel_CPPFLAGS = $(AM_CPPFLAGS)
131network_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
132network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
133
134libbsp_a_LIBADD += network.rel
135
136endif
137
138# ----------------------------
139# ------  Special Rules
140# ----------------------------
141
142DISTCLEANFILES = include/bspopts.h
143
144include $(srcdir)/preinstall.am
145include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.