source: rtems/c/src/lib/libbsp/arm/tms570/Makefile.am @ 762fa62

5
Last change on this file since 762fa62 was 762fa62, checked in by Sebastian Huber <sebastian.huber@…>, on May 22, 2018 at 6:52:13 AM

arm: Simplify CPU counter support

Use the standard ARMv7-M systick module for the ARMv7-M CPU counter
instead of DWT counter since the DWT counter is affected by power saving
states.

Use an inline function for _CPU_Counter_difference() for all ARM BSPs.

Update #3456.

  • Property mode set to 100644
File size: 4.5 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
11include $(top_srcdir)/../../bsp.am
12
13dist_project_lib_DATA = ../../../../../../bsps/arm/tms570/start/bsp_specs
14
15# ----------------------------
16# ------  Headers
17# ----------------------------
18
19# ----------------------------
20# ------  Data
21# ----------------------------
22
23start.$(OBJEXT): ../../../../../../bsps/arm/shared/start/start.S
24        $(CPPASCOMPILE) -o $@ -c $<
25project_lib_DATA = start.$(OBJEXT)
26
27project_lib_DATA += linkcmds
28dist_project_lib_DATA += ../../../../../../bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk
29dist_project_lib_DATA += ../../../../../../bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_intram
30dist_project_lib_DATA += ../../../../../../bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_sdram
31dist_project_lib_DATA += ../../../../../../bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_with_loader
32
33# ----------------------------
34# ------  LibBSP
35# ----------------------------
36
37project_lib_LIBRARIES = librtemsbsp.a
38
39librtemsbsp_a_SOURCES =
40
41# Shared
42librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
43librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
44librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
45librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
46librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
47librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c
48librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cp15/arm-cp15-set-ttb-entries.c
49
50# Startup
51librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/bsp-start-memcpy.S
52librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/bsp-start-init-registers.S
53librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/bspreset.c
54librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/bspstart.c
55
56# POM
57librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/tms570-pom.c
58
59# IRQ
60librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
61librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/irq/irq.c
62
63# Console
64librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios.c
65librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/console/printk-support.c
66librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/console/tms570-sci.c
67
68# Clock
69librtemsbsp_a_SOURCES +=../../../../../../bsps/arm/tms570/clock/clock.c
70
71# RTC
72
73# GPIO
74librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/pinmux.c
75
76# Benchmark Timer
77librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/btimer/btimer-cpucounter.c
78
79# Misc
80librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/cpucounter/cpucounterread.c
81
82# Watchdog
83
84# Cache
85librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/cache/nocache.c
86
87if TMS570_USE_HWINIT_STARTUP
88librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/tms570_sys_core.S
89librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/fail_notification.c
90librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/init_emif_sdram.c
91librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/init_esm.c
92librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/init_pinmux.c
93librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/init_system.c
94librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/tms570_selftest.c
95librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/tms570_selftest_par_can.c
96librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/tms570_selftest_par_mibspi.c
97librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/tms570_selftest_par_std.c
98librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/tms570_selftest_parity.c
99librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/tms570_tcram_tests.c
100
101# Start hooks
102librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/bspstarthooks-hwinit.c
103else
104# Start hooks
105librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/tms570/start/bspstarthooks.c
106endif
107
108# ----------------------------
109# ------  Special Rules
110# ----------------------------
111
112
113include $(top_srcdir)/../../../../automake/local.am
114include $(srcdir)/../../../../../../bsps/shared/irq-sources.am
115include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
116include $(srcdir)/../../../../../../bsps/arm/tms570/headers.am
Note: See TracBrowser for help on using the repository browser.