source: rtems/c/src/lib/libbsp/arm/raspberrypi/Makefile.am @ 24bf11e

4.115
Last change on this file since 24bf11e was 24bf11e, checked in by Sebastian Huber <sebastian.huber@…>, on 02/12/14 at 09:31:38

score: Add CPU counter support

Add a CPU counter interface to allow access to a free-running counter.
It is useful to measure short time intervals. This can be used for
example to enable profiling of critical low-level functions.

Add two busy wait functions rtems_counter_delay_ticks() and
rtems_counter_delay_nanoseconds() implemented via the CPU counter.

  • Property mode set to 100644
File size: 5.3 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the raspberrypi board.
6#
7
8ACLOCAL_AMFLAGS = -I ../../../../aclocal
9
10include $(top_srcdir)/../../../../automake/compile.am
11
12include_bspdir = $(includedir)/bsp
13include_libcpudir = $(includedir)/libcpu
14
15dist_project_lib_DATA = bsp_specs
16
17###############################################################################
18# Header                                                     #
19###############################################################################
20
21include_HEADERS = include/bsp.h
22include_HEADERS += ../../shared/include/tm27.h
23
24nodist_include_HEADERS = ../../shared/include/coverhd.h \
25    include/bspopts.h
26
27nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
28
29include_bsp_HEADERS =
30include_bsp_HEADERS += ../../../libbsp/shared/include/mm.h
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/tod.h
37include_bsp_HEADERS += ../shared/include/linker-symbols.h
38include_bsp_HEADERS += ../shared/include/start.h
39include_bsp_HEADERS += ../shared/include/arm-cp15-start.h
40include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
41include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
42include_bsp_HEADERS += include/irq.h
43include_bsp_HEADERS += include/mmu.h
44include_bsp_HEADERS += include/usart.h
45include_bsp_HEADERS += include/raspberrypi.h
46
47include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/cache_.h \
48    ../../../libcpu/arm/shared/include/arm-cp15.h
49
50###############################################################################
51# Data                                                       #
52###############################################################################
53
54noinst_LIBRARIES = libbspstart.a
55
56libbspstart_a_SOURCES = ../shared/start/start.S
57
58project_lib_DATA = start.$(OBJEXT)
59
60project_lib_DATA += startup/linkcmds
61project_lib_DATA += ../shared/startup/linkcmds.base
62
63EXTRA_DIST = startup/linkcmds
64
65###############################################################################
66# LibBSP                                                     #
67###############################################################################
68
69noinst_LIBRARIES += libbsp.a
70
71libbsp_a_SOURCES =
72libbsp_a_CPPFLAGS =
73libbsp_a_LIBADD =
74
75# Shared
76libbsp_a_SOURCES += ../../shared/bootcard.c
77libbsp_a_SOURCES += ../../shared/bspclean.c
78libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
79libbsp_a_SOURCES += ../../shared/bsplibc.c
80libbsp_a_SOURCES += ../../shared/bsppost.c
81libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
82libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
83libbsp_a_SOURCES += ../../shared/cpucounterread.c
84libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
85libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
86libbsp_a_SOURCES += ../../shared/sbrk.c
87libbsp_a_SOURCES += ../../shared/src/stackalloc.c
88libbsp_a_SOURCES += ../shared/abort/simple_abort.c
89libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
90libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
91
92# Startup
93libbsp_a_SOURCES += startup/bspreset.c
94libbsp_a_SOURCES += startup/bspstart.c
95
96# IRQ
97libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
98libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
99libbsp_a_SOURCES += ../../shared/src/irq-generic.c
100libbsp_a_SOURCES += ../../shared/src/irq-info.c
101libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
102libbsp_a_SOURCES += ../../shared/src/irq-server.c
103libbsp_a_SOURCES += ../../shared/src/irq-shell.c
104libbsp_a_SOURCES += irq/irq.c
105
106# Console
107libbsp_a_SOURCES += ../../shared/console.c
108libbsp_a_SOURCES += ../../shared/console_control.c
109libbsp_a_SOURCES += ../../shared/console_read.c
110libbsp_a_SOURCES += ../../shared/console_select.c
111libbsp_a_SOURCES += ../../shared/console_write.c
112libbsp_a_SOURCES += console/console-config.c
113libbsp_a_SOURCES += console/usart.c
114
115# clock
116libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
117
118# Timer
119libbsp_a_SOURCES += misc/timer.c
120
121# RTC
122
123# SSP
124
125# I2C
126
127# Cache
128libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
129libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
130libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
131
132# Start hooks
133libbsp_a_SOURCES += startup/bspstarthooks.c
134
135# LIBMM
136libbsp_a_SOURCES += startup/mm_config_table.c
137libbsp_a_SOURCES += ../shared/mminit.c
138
139###############################################################################
140# Network                                                    #
141###############################################################################
142
143#if HAS_NETWORKING
144#
145#noinst_PROGRAMS = network.rel
146#
147#network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
148#network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
149#network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
150#
151#
152#libbsp_a_LIBADD += network.rel
153#
154#endif
155
156###############################################################################
157#                  Special Rules                                              #
158###############################################################################
159
160DISTCLEANFILES = include/bspopts.h
161
162include $(srcdir)/preinstall.am
163include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.