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

Last change on this file since 2717032d was 2717032d, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 14, 2017 at 6:15:19 AM

bsps/arm: Fix move <libcpu/arm-cp15.h> to cpukit

Update #3254.

  • Property mode set to 100644
File size: 5.9 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
13
14dist_project_lib_DATA = bsp_specs
15
16###############################################################################
17# Header                                                     #
18###############################################################################
19
20include_HEADERS = include/bsp.h
21include_HEADERS += include/tm27.h
22
23nodist_include_HEADERS = include/bspopts.h
24
25nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
26
27noinst_HEADERS = console/font_data.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
54include_bsp_HEADERS += console/fbcons.h
55
56###############################################################################
57# Data                                                       #
58###############################################################################
59
60noinst_LIBRARIES = libbspstart.a
61
62libbspstart_a_SOURCES = ../shared/start/start.S
63
64project_lib_DATA = start.$(OBJEXT)
65
66project_lib_DATA += startup/linkcmds
67project_lib_DATA += ../shared/startup/linkcmds.base
68
69###############################################################################
70# LibBSP                                                     #
71###############################################################################
72
73noinst_LIBRARIES += libbsp.a
74
75libbsp_a_SOURCES =
76libbsp_a_CPPFLAGS =
77libbsp_a_LIBADD =
78
79# Shared
80libbsp_a_SOURCES += ../../shared/bootcard.c
81libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
82libbsp_a_SOURCES += ../../shared/bspclean.c
83libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
84libbsp_a_SOURCES += ../../shared/cpucounterread.c
85libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
86libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
87libbsp_a_SOURCES += ../../shared/sbrk.c
88libbsp_a_SOURCES += ../../shared/src/stackalloc.c
89libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
90libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
91if BSP_START_IN_HYP_SUPPORT
92libbsp_a_SOURCES += ../shared/startup/bsp-start-in-hyp-support.S
93endif
94
95# Startup
96libbsp_a_SOURCES += startup/bspstart.c
97libbsp_a_SOURCES += startup/cmdline.c
98libbsp_a_SOURCES += startup/bspgetworkarea.c
99if HAS_SMP
100libbsp_a_SOURCES += startup/bspsmp.c
101libbsp_a_SOURCES += startup/bspsmp_init.c
102endif
103
104# Restart
105libbsp_a_SOURCES += startup/bspreset.c
106
107# IRQ
108libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
109libbsp_a_SOURCES += ../../shared/src/irq-generic.c
110libbsp_a_SOURCES += ../../shared/src/irq-info.c
111libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
112libbsp_a_SOURCES += ../../shared/src/irq-server.c
113libbsp_a_SOURCES += ../../shared/src/irq-shell.c
114libbsp_a_SOURCES += irq/irq.c
115
116# Console
117libbsp_a_SOURCES += ../../shared/console.c
118libbsp_a_SOURCES += ../../shared/console_control.c
119libbsp_a_SOURCES += ../../shared/console_read.c
120libbsp_a_SOURCES += ../../shared/console_write.c
121libbsp_a_SOURCES += console/console-config.c
122libbsp_a_SOURCES += console/console_select.c
123libbsp_a_SOURCES += console/usart.c
124libbsp_a_SOURCES += console/fb.c
125libbsp_a_SOURCES += console/fbcons.c
126libbsp_a_SOURCES += console/outch.c
127
128# Mailbox
129libbsp_a_SOURCES += misc/mailbox.c
130
131# VideoCore
132libbsp_a_SOURCES += misc/vc.c
133
134# clock
135libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
136
137# Timer
138libbsp_a_SOURCES += misc/timer.c
139
140# GPIO
141libbsp_a_SOURCES += ../../shared/gpio.c
142libbsp_a_SOURCES += gpio/rpi-gpio.c
143
144# RTC
145
146# SSP
147
148# I2C
149libbsp_a_SOURCES += i2c/i2c.c
150
151# SPI
152libbsp_a_SOURCES += spi/spi.c
153
154# Cache
155libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
156libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h
157libbsp_a_SOURCES += ../shared/armv467ar-basic-cache/cache_.h
158libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/armv467ar-basic-cache
159
160# Start hooks
161libbsp_a_SOURCES += startup/bspstarthooks.c
162
163# LIBMM
164libbsp_a_SOURCES += startup/mm_config_table.c
165libbsp_a_SOURCES += ../shared/mminit.c
166
167###############################################################################
168# Network                                                    #
169###############################################################################
170
171#if HAS_NETWORKING
172#
173#noinst_PROGRAMS = network.rel
174#
175#network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
176#network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
177#network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
178#
179#
180#libbsp_a_LIBADD += network.rel
181#
182#endif
183
184###############################################################################
185#                  Special Rules                                              #
186###############################################################################
187
188DISTCLEANFILES = include/bspopts.h
189
190include $(srcdir)/preinstall.am
191include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.