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

5
Last change on this file since f3ce8f41 was f3ce8f41, checked in by Sebastian Huber <sebastian.huber@…>, on 01/02/18 at 07:00:02

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

Update #3254.

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[c32b1ef]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
[f3ce8f41]11include $(top_srcdir)/../../bsp.am
[c32b1ef]12
13include_bspdir = $(includedir)/bsp
14
15dist_project_lib_DATA = bsp_specs
16
17###############################################################################
18# Header                                                     #
19###############################################################################
20
21include_HEADERS = include/bsp.h
[642ef00]22include_HEADERS += include/tm27.h
[c32b1ef]23
[e58e29fd]24nodist_include_HEADERS = include/bspopts.h
[c32b1ef]25
26nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
27
[c12069e]28noinst_HEADERS = console/font_data.h
29
[c32b1ef]30include_bsp_HEADERS =
[5ceefe1]31include_bsp_HEADERS += ../../../libbsp/shared/include/mm.h
[c32b1ef]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
[f7ea9579]37include_bsp_HEADERS += ../../shared/include/gpio.h
[c32b1ef]38include_bsp_HEADERS += ../shared/include/linker-symbols.h
39include_bsp_HEADERS += ../shared/include/start.h
[5ceefe1]40include_bsp_HEADERS += ../shared/include/arm-cp15-start.h
[f2a8b60]41include_bsp_HEADERS += ../shared/include/arm-errata.h
[c32b1ef]42include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
43include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
[f2a8b60]44include_bsp_HEADERS += ../shared/include/arm-release-id.h
[c32b1ef]45include_bsp_HEADERS += include/irq.h
46include_bsp_HEADERS += include/mmu.h
47include_bsp_HEADERS += include/usart.h
48include_bsp_HEADERS += include/raspberrypi.h
[61e7c69]49include_bsp_HEADERS += include/rpi-gpio.h
[7aca0fe]50include_bsp_HEADERS += include/i2c.h
51include_bsp_HEADERS += include/spi.h
[33e39d31]52include_bsp_HEADERS += include/mailbox.h
[54c197a]53include_bsp_HEADERS += include/vc.h
[c1a9f6a1]54include_bsp_HEADERS += include/rpi-fb.h
[6b5df95]55include_bsp_HEADERS += console/fbcons.h
[c32b1ef]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
[ca4895c]82libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
[c32b1ef]83libbsp_a_SOURCES += ../../shared/bspclean.c
84libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
[24bf11e]85libbsp_a_SOURCES += ../../shared/cpucounterread.c
86libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
[c32b1ef]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
[5ceefe1]91libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
[fe106ad5]92if BSP_START_IN_HYP_SUPPORT
93libbsp_a_SOURCES += ../shared/startup/bsp-start-in-hyp-support.S
94endif
[c32b1ef]95
96# Startup
97libbsp_a_SOURCES += startup/bspstart.c
[8830bfe6]98libbsp_a_SOURCES += startup/cmdline.c
[c64d5f0d]99libbsp_a_SOURCES += startup/bspgetworkarea.c
[df2ee9d]100if HAS_SMP
[531924d]101libbsp_a_SOURCES += startup/bspsmp.c
[df2ee9d]102libbsp_a_SOURCES += startup/bspsmp_init.c
103endif
[c32b1ef]104
[5eb769ca]105# Restart
106libbsp_a_SOURCES += startup/bspreset.c
107
[c32b1ef]108# IRQ
[5ceefe1]109libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
[c32b1ef]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
[6b5df95]123libbsp_a_SOURCES += console/console_select.c
[c32b1ef]124libbsp_a_SOURCES += console/usart.c
[c1a9f6a1]125libbsp_a_SOURCES += console/fb.c
[6b5df95]126libbsp_a_SOURCES += console/fbcons.c
[c12069e]127libbsp_a_SOURCES += console/outch.c
[c32b1ef]128
[33e39d31]129# Mailbox
130libbsp_a_SOURCES += misc/mailbox.c
131
[54c197a]132# VideoCore
133libbsp_a_SOURCES += misc/vc.c
134
[c32b1ef]135# clock
136libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
137
138# Timer
139libbsp_a_SOURCES += misc/timer.c
140
[61e7c69]141# GPIO
[f7ea9579]142libbsp_a_SOURCES += ../../shared/gpio.c
[61e7c69]143libbsp_a_SOURCES += gpio/rpi-gpio.c
144
[c32b1ef]145# RTC
146
147# SSP
148
149# I2C
[7aca0fe]150libbsp_a_SOURCES += i2c/i2c.c
151
152# SPI
153libbsp_a_SOURCES += spi/spi.c
[c32b1ef]154
155# Cache
156libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
[d4316537]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
[c32b1ef]160
161# Start hooks
162libbsp_a_SOURCES += startup/bspstarthooks.c
163
[5ceefe1]164# LIBMM
165libbsp_a_SOURCES += startup/mm_config_table.c
166libbsp_a_SOURCES += ../shared/mminit.c
167
[c32b1ef]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.