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

4.11
Last change on this file since a114f99b was a114f99b, checked in by Pavel Pisa <pisa@…>, on Jul 3, 2016 at 3:26:50 PM

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: 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/include/linker-symbols.h
37include_bsp_HEADERS += ../shared/include/start.h
38include_bsp_HEADERS += ../shared/include/arm-cp15-start.h
39include_bsp_HEADERS += ../shared/include/arm-errata.h
40include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
41include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
42include_bsp_HEADERS += ../shared/include/arm-release-id.h
43include_bsp_HEADERS += include/irq.h
44include_bsp_HEADERS += include/mmu.h
45include_bsp_HEADERS += include/usart.h
46include_bsp_HEADERS += include/raspberrypi.h
47
48include_libcpu_HEADERS =  ../../../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/startup/bsp-start-memcpy.S
89libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
90
91# Startup
92libbsp_a_SOURCES += ../../shared/bspreset_loop.c
93libbsp_a_SOURCES += startup/bspstart.c
94
95# IRQ
96libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
97libbsp_a_SOURCES += ../../shared/src/irq-generic.c
98libbsp_a_SOURCES += ../../shared/src/irq-info.c
99libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
100libbsp_a_SOURCES += ../../shared/src/irq-server.c
101libbsp_a_SOURCES += ../../shared/src/irq-shell.c
102libbsp_a_SOURCES += irq/irq.c
103
104# Console
105libbsp_a_SOURCES += ../../shared/console.c
106libbsp_a_SOURCES += ../../shared/console_control.c
107libbsp_a_SOURCES += ../../shared/console_read.c
108libbsp_a_SOURCES += ../../shared/console_select.c
109libbsp_a_SOURCES += ../../shared/console_write.c
110libbsp_a_SOURCES += console/console-config.c
111libbsp_a_SOURCES += console/usart.c
112
113# clock
114libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
115
116# Timer
117libbsp_a_SOURCES += misc/timer.c
118
119# RTC
120
121# SSP
122
123# I2C
124
125# Cache
126libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
127libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h
128libbsp_a_SOURCES += ../shared/armv467ar-basic-cache/cache_.h
129libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/armv467ar-basic-cache
130
131# Start hooks
132libbsp_a_SOURCES += startup/bspstarthooks.c
133
134# LIBMM
135libbsp_a_SOURCES += startup/mm_config_table.c
136libbsp_a_SOURCES += ../shared/mminit.c
137
138###############################################################################
139# Network                                                    #
140###############################################################################
141
142#if HAS_NETWORKING
143#
144#noinst_PROGRAMS = network.rel
145#
146#network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
147#network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
148#network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
149#
150#
151#libbsp_a_LIBADD += network.rel
152#
153#endif
154
155###############################################################################
156#                  Special Rules                                              #
157###############################################################################
158
159DISTCLEANFILES = include/bspopts.h
160
161include $(srcdir)/preinstall.am
162include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.