source: rtems/c/src/lib/libbsp/arm/lpc32xx/Makefile.am @ a114f99b

4.11
Last change on this file since a114f99b was a114f99b, checked in by Pavel Pisa <pisa@…>, on 07/03/16 at 15:26:50

bsps/arm: Change code to explicit selection of cache implementation for ARM BSPs.

The original ARM architecture wide cache_.h is changed to dummy version
for targets not implementing/enablig cache at all.

The ARM targets equipped by cache should include
appropriate implementation.

Next options are available for now

c/src/lib/libbsp/arm/shared/armv467ar-basic-cache/cache_.h

basic ARM cache integrated on the CPU core directly
which requires only CP15 oparations

c/src/lib/libbsp/arm/shared/arm-l2c-310/cache_.h

support for case where ARM L2C-310 cache controller
is used. It is accessible as mmaped peripheral.

c/src/lib/libbsp/arm/shared/armv7m/include/cache_.h

Cortex-M specific cache support

Updates #2782
Updates #2783

  • Property mode set to 100644
File size: 6.0 KB
RevLine 
[c468f18b]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
[39c8fdb]13include_libcpudir = $(includedir)/libcpu
[c468f18b]14
15dist_project_lib_DATA = bsp_specs
16
17###############################################################################
18#                  Header                                                     #
19###############################################################################
20
21include_HEADERS = include/bsp.h
[c477be46]22include_HEADERS += include/tm27.h
[c468f18b]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
[4c4974e]34include_bsp_HEADERS += ../../shared/include/uart-output-char.h
[c468f18b]35include_bsp_HEADERS += ../shared/include/start.h
[ecf7dd9]36include_bsp_HEADERS += ../shared/include/arm-cp15-start.h
[deccde3]37include_bsp_HEADERS += ../shared/include/arm-errata.h
[c468f18b]38include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
[22f107b6]39include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
[598a4505]40include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
[76134c5]41include_bsp_HEADERS += ../shared/lpc/include/lpc-emc.h
42include_bsp_HEADERS += ../shared/lpc/include/lpc-lcd.h
[deccde3]43include_bsp_HEADERS += ../shared/include/arm-release-id.h
[c468f18b]44include_bsp_HEADERS += include/irq.h
[39c8fdb]45include_bsp_HEADERS += include/mmu.h
[c468f18b]46include_bsp_HEADERS += include/lpc32xx.h
47include_bsp_HEADERS += include/lpc-clock-config.h
[39c8fdb]48include_bsp_HEADERS += include/lpc-ethernet-config.h
[3103d4cb]49include_bsp_HEADERS += include/nand-mlc.h
50include_bsp_HEADERS += include/boot.h
[6ec438e]51include_bsp_HEADERS += include/hsu.h
[3103d4cb]52include_bsp_HEADERS += include/i2c.h
53include_bsp_HEADERS += include/emc.h
[c468f18b]54
[25874f0]55include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h
[c468f18b]56
57###############################################################################
58#                  Data                                                       #
59###############################################################################
60
61noinst_LIBRARIES = libbspstart.a
62
63libbspstart_a_SOURCES = ../shared/start/start.S
64
65project_lib_DATA = start.$(OBJEXT)
66
67project_lib_DATA += startup/linkcmds
[3103d4cb]68project_lib_DATA += startup/linkcmds.lpc32xx
[c468f18b]69
[4c4974e]70EXTRA_DIST = startup/linkcmds.lpc32xx_phycore \
[3103d4cb]71        startup/linkcmds.lpc32xx_mzx_stage_1 \
72        startup/linkcmds.lpc32xx_mzx_stage_2 \
73        startup/linkcmds.lpc32xx_mzx
[c468f18b]74
75###############################################################################
76#                  LibBSP                                                     #
77###############################################################################
78
79noinst_LIBRARIES += libbsp.a
80
81libbsp_a_SOURCES =
[39c8fdb]82libbsp_a_CPPFLAGS =
83libbsp_a_LIBADD =
[c468f18b]84
85# Shared
[f41fb2b]86libbsp_a_SOURCES += ../../shared/bootcard.c
87libbsp_a_SOURCES += ../../shared/bspclean.c
88libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
89libbsp_a_SOURCES += ../../shared/bsplibc.c
90libbsp_a_SOURCES += ../../shared/bsppost.c
91libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
92libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
[24bf11e]93libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
[f41fb2b]94libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
95libbsp_a_SOURCES += ../../shared/sbrk.c
96libbsp_a_SOURCES += ../../shared/src/stackalloc.c
97libbsp_a_SOURCES += ../../shared/src/uart-output-char.c
[be8feba8]98libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
[037e8ae5]99libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
[c468f18b]100
101# Startup
[f41fb2b]102libbsp_a_SOURCES += startup/bspreset.c
103libbsp_a_SOURCES += startup/bspstart.c
[c468f18b]104
105# IRQ
[0f31fddc]106libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
107libbsp_a_SOURCES += ../../shared/src/irq-generic.c
108libbsp_a_SOURCES += ../../shared/src/irq-info.c
109libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
110libbsp_a_SOURCES += ../../shared/src/irq-server.c
111libbsp_a_SOURCES += ../../shared/src/irq-shell.c
112libbsp_a_SOURCES += irq/irq.c
[c468f18b]113
114# Console
[6ec438e]115libbsp_a_SOURCES += ../../shared/console-termios-init.c
116libbsp_a_SOURCES += ../../shared/console-termios.c
117libbsp_a_SOURCES += console/console-config.c
118libbsp_a_SOURCES += console/hsu.c
[c468f18b]119
120# Clock
[1f7d0cca]121libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
122libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
[c468f18b]123
124# RTC
125libbsp_a_SOURCES += ../../shared/tod.c \
126        rtc/rtc-config.c
127
[3103d4cb]128# Misc
[f41fb2b]129libbsp_a_SOURCES += misc/boot.c
130libbsp_a_SOURCES += misc/emc.c
131libbsp_a_SOURCES += misc/i2c.c
132libbsp_a_SOURCES += misc/nand-mlc.c
133libbsp_a_SOURCES += misc/nand-mlc-erase-block-safe.c
134libbsp_a_SOURCES += misc/nand-mlc-read-blocks.c
135libbsp_a_SOURCES += misc/nand-mlc-write-blocks.c
136libbsp_a_SOURCES += misc/restart.c
137libbsp_a_SOURCES += misc/system-clocks.c
138libbsp_a_SOURCES += misc/timer.c
[6cfe52f]139libbsp_a_SOURCES += misc/nand-select.c
[f25d31f]140libbsp_a_SOURCES += misc/idle-thread.c
[c468f18b]141
142# SSP
143
144# I2C
145
[39c8fdb]146# Cache
[30a45737]147libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
[a114f99b]148libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h
149libbsp_a_SOURCES += ../shared/armv467ar-basic-cache/cache_.h
150libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/armv467ar-basic-cache
151
[39c8fdb]152
[22f107b6]153# Start hooks
[c468f18b]154libbsp_a_SOURCES += startup/bspstarthooks.c
155
156###############################################################################
157#                  Network                                                    #
158###############################################################################
159
160if HAS_NETWORKING
161
[39c8fdb]162noinst_PROGRAMS = network.rel
[c468f18b]163
[39c8fdb]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)
[c468f18b]167
[39c8fdb]168libbsp_a_LIBADD += network.rel
[c468f18b]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.