source: rtems/c/src/lib/libbsp/arm/lpc32xx/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: 6.0 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC32XX boards.
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 += 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 += ../../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/tod.h
36include_bsp_HEADERS += ../shared/include/start.h
37include_bsp_HEADERS += ../shared/include/arm-cp15-start.h
38include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
39include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
40include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
41include_bsp_HEADERS += ../shared/lpc/include/lpc-emc.h
42include_bsp_HEADERS += ../shared/lpc/include/lpc-lcd.h
43include_bsp_HEADERS += include/irq.h
44include_bsp_HEADERS += include/mmu.h
45include_bsp_HEADERS += include/lpc32xx.h
46include_bsp_HEADERS += include/lpc-clock-config.h
47include_bsp_HEADERS += include/lpc-ethernet-config.h
48include_bsp_HEADERS += include/nand-mlc.h
49include_bsp_HEADERS += include/boot.h
50include_bsp_HEADERS += include/i2c.h
51include_bsp_HEADERS += include/emc.h
52
53include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h
54
55###############################################################################
56#                  Data                                                       #
57###############################################################################
58
59noinst_LIBRARIES = libbspstart.a
60
61libbspstart_a_SOURCES = ../shared/start/start.S
62
63project_lib_DATA = start.$(OBJEXT)
64
65project_lib_DATA += startup/linkcmds
66project_lib_DATA += startup/linkcmds.lpc32xx
67
68EXTRA_DIST = startup/linkcmds.lpc32xx_phycore \
69        startup/linkcmds.lpc32xx_mzx_stage_1 \
70        startup/linkcmds.lpc32xx_mzx_stage_2 \
71        startup/linkcmds.lpc32xx_mzx
72
73###############################################################################
74#                  LibBSP                                                     #
75###############################################################################
76
77noinst_LIBRARIES += libbsp.a
78
79libbsp_a_SOURCES =
80libbsp_a_CPPFLAGS =
81libbsp_a_LIBADD =
82
83# Shared
84libbsp_a_SOURCES += ../../shared/bootcard.c
85libbsp_a_SOURCES += ../../shared/bspclean.c
86libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
87libbsp_a_SOURCES += ../../shared/bsplibc.c
88libbsp_a_SOURCES += ../../shared/bsppost.c
89libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
90libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
91libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
92libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
93libbsp_a_SOURCES += ../../shared/sbrk.c
94libbsp_a_SOURCES += ../../shared/src/stackalloc.c
95libbsp_a_SOURCES += ../../shared/src/uart-output-char.c
96libbsp_a_SOURCES += ../shared/abort/simple_abort.c
97libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
98libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
99
100# Startup
101libbsp_a_SOURCES += startup/bspreset.c
102libbsp_a_SOURCES += startup/bspstart.c
103
104# IRQ
105libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
106libbsp_a_SOURCES += ../../shared/src/irq-generic.c
107libbsp_a_SOURCES += ../../shared/src/irq-info.c
108libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
109libbsp_a_SOURCES += ../../shared/src/irq-server.c
110libbsp_a_SOURCES += ../../shared/src/irq-shell.c
111libbsp_a_SOURCES += irq/irq.c
112
113# Console
114libbsp_a_SOURCES += ../../shared/console.c \
115        ../../shared/console_select.c \
116        console/console-config.c \
117        console/hsu.c \
118        ../../shared/console_read.c \
119        ../../shared/console_write.c \
120        ../../shared/console_control.c
121
122# Clock
123libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
124libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
125
126# RTC
127libbsp_a_SOURCES += ../../shared/tod.c \
128        rtc/rtc-config.c
129
130# Misc
131libbsp_a_SOURCES += misc/boot.c
132libbsp_a_SOURCES += misc/emc.c
133libbsp_a_SOURCES += misc/i2c.c
134libbsp_a_SOURCES += misc/nand-mlc.c
135libbsp_a_SOURCES += misc/nand-mlc-erase-block-safe.c
136libbsp_a_SOURCES += misc/nand-mlc-read-blocks.c
137libbsp_a_SOURCES += misc/nand-mlc-write-blocks.c
138libbsp_a_SOURCES += misc/restart.c
139libbsp_a_SOURCES += misc/system-clocks.c
140libbsp_a_SOURCES += misc/timer.c
141libbsp_a_SOURCES += misc/nand-select.c
142libbsp_a_SOURCES += misc/idle-thread.c
143
144# SSP
145
146# I2C
147
148# Cache
149libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
150libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
151libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
152
153# Start hooks
154libbsp_a_SOURCES += startup/bspstarthooks.c
155
156###############################################################################
157#                  Network                                                    #
158###############################################################################
159
160if HAS_NETWORKING
161
162noinst_PROGRAMS = network.rel
163
164network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
165network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
166network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
167
168libbsp_a_LIBADD += network.rel
169
170endif
171
172###############################################################################
173#                  Special Rules                                              #
174###############################################################################
175
176DISTCLEANFILES = include/bspopts.h
177
178include $(srcdir)/preinstall.am
179include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.