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

4.115
Last change on this file since 5ceefe1 was 5ceefe1, checked in by Hesham AL-Matary <heshamelmatary@…>, on 09/28/13 at 08:08:25

Shared MMU initialization for ARM BSPs and RaspberryPi? MMU support

Add support for MMU initialization for RaspberryPi?. Introduce new shared
MMU configuration table that can be used by other BSPs that call the
arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache function.
Demonstrate the use of the generic table with RaspberryPi?.

  • Property mode set to 100644
File size: 5.2 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/gnatinstallhandler.c
84libbsp_a_SOURCES += ../../shared/sbrk.c
85libbsp_a_SOURCES += ../../shared/src/stackalloc.c
86libbsp_a_SOURCES += ../shared/abort/simple_abort.c
87libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
88libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
89
90# Startup
91libbsp_a_SOURCES += startup/bspreset.c
92libbsp_a_SOURCES += startup/bspstart.c
93
94# IRQ
95libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
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 += ../../../libcpu/arm/shared/include/cache_.h
128libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
129
130# Start hooks
131libbsp_a_SOURCES += startup/bspstarthooks.c
132
133# LIBMM
134libbsp_a_SOURCES += startup/mm_config_table.c
135libbsp_a_SOURCES += ../shared/mminit.c
136
137###############################################################################
138# Network                                                    #
139###############################################################################
140
141#if HAS_NETWORKING
142#
143#noinst_PROGRAMS = network.rel
144#
145#network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
146#network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
147#network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
148#
149#
150#libbsp_a_LIBADD += network.rel
151#
152#endif
153
154###############################################################################
155#                  Special Rules                                              #
156###############################################################################
157
158DISTCLEANFILES = include/bspopts.h
159
160include $(srcdir)/preinstall.am
161include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.