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

Last change on this file since f3ce8f41 was f3ce8f41, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 2, 2018 at 7:00:02 AM

bsps: Include bsp.am in all BSP Makefile.am

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