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

5
Last change on this file since c64d5f0d was c64d5f0d, checked in by Pavel Pisa <ppisa@…>, on 05/21/16 at 22:18:03

arm/raspberrypi: move MMU in front of application image to respect variable memory size.

The page table is placed at address 0x00004000 which provides
required 16 kB space till the start of application image.

The RAM size specified in a linker script is upper limit
address of RAM utilized for the work area initialization.

If VideoCore? reports to use lower address than expected
then work area size is adjusted (shrinked) appropriately.

  • Property mode set to 100644
File size: 5.7 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/gpio.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/include/arm-errata.h
41include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
42include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
43include_bsp_HEADERS += ../shared/include/arm-release-id.h
44include_bsp_HEADERS += include/irq.h
45include_bsp_HEADERS += include/mmu.h
46include_bsp_HEADERS += include/usart.h
47include_bsp_HEADERS += include/raspberrypi.h
48include_bsp_HEADERS += include/rpi-gpio.h
49include_bsp_HEADERS += include/i2c.h
50include_bsp_HEADERS += include/spi.h
51include_bsp_HEADERS += include/mailbox.h
52include_bsp_HEADERS += include/vc.h
53include_bsp_HEADERS += include/rpi-fb.h
54
55include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/cache_.h \
56    ../../../libcpu/arm/shared/include/arm-cp15.h
57
58###############################################################################
59# Data                                                       #
60###############################################################################
61
62noinst_LIBRARIES = libbspstart.a
63
64libbspstart_a_SOURCES = ../shared/start/start.S
65
66project_lib_DATA = start.$(OBJEXT)
67
68project_lib_DATA += startup/linkcmds
69project_lib_DATA += ../shared/startup/linkcmds.base
70
71EXTRA_DIST = startup/linkcmds
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/bsppredriverhook.c
87libbsp_a_SOURCES += ../../shared/cpucounterread.c
88libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
89libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
90libbsp_a_SOURCES += ../../shared/sbrk.c
91libbsp_a_SOURCES += ../../shared/src/stackalloc.c
92libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
93libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
94
95# Startup
96libbsp_a_SOURCES += ../../shared/bspreset_loop.c
97libbsp_a_SOURCES += startup/bspstart.c
98libbsp_a_SOURCES += startup/cmdline.c
99libbsp_a_SOURCES += startup/bspgetworkarea.c
100
101# IRQ
102libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
103libbsp_a_SOURCES += ../../shared/src/irq-generic.c
104libbsp_a_SOURCES += ../../shared/src/irq-info.c
105libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
106libbsp_a_SOURCES += ../../shared/src/irq-server.c
107libbsp_a_SOURCES += ../../shared/src/irq-shell.c
108libbsp_a_SOURCES += irq/irq.c
109
110# Console
111libbsp_a_SOURCES += ../../shared/console.c
112libbsp_a_SOURCES += ../../shared/console_control.c
113libbsp_a_SOURCES += ../../shared/console_read.c
114libbsp_a_SOURCES += ../../shared/console_select.c
115libbsp_a_SOURCES += ../../shared/console_write.c
116libbsp_a_SOURCES += console/console-config.c
117libbsp_a_SOURCES += console/usart.c
118libbsp_a_SOURCES += console/fb.c
119
120# Mailbox
121libbsp_a_SOURCES += misc/mailbox.c
122
123# VideoCore
124libbsp_a_SOURCES += misc/vc.c
125
126# clock
127libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
128
129# Timer
130libbsp_a_SOURCES += misc/timer.c
131
132# GPIO
133libbsp_a_SOURCES += ../../shared/gpio.c
134libbsp_a_SOURCES += gpio/rpi-gpio.c
135
136# RTC
137
138# SSP
139
140# I2C
141libbsp_a_SOURCES += i2c/i2c.c
142
143# SPI
144libbsp_a_SOURCES += spi/spi.c
145
146# Cache
147libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
148libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
149libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
150
151# Start hooks
152libbsp_a_SOURCES += startup/bspstarthooks.c
153
154# LIBMM
155libbsp_a_SOURCES += startup/mm_config_table.c
156libbsp_a_SOURCES += ../shared/mminit.c
157
158###############################################################################
159# Network                                                    #
160###############################################################################
161
162#if HAS_NETWORKING
163#
164#noinst_PROGRAMS = network.rel
165#
166#network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
167#network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
168#network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
169#
170#
171#libbsp_a_LIBADD += network.rel
172#
173#endif
174
175###############################################################################
176#                  Special Rules                                              #
177###############################################################################
178
179DISTCLEANFILES = include/bspopts.h
180
181include $(srcdir)/preinstall.am
182include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.