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

5
Last change on this file since 642ef00 was 642ef00, checked in by Sebastian Huber <sebastian.huber@…>, on 11/27/17 at 05:23:29

bsps: Provide <tm27.h> in each BSP

Since the <tm27.h> is highly BSP-dependent and used only by the tm27
test program we must provide this header file for each BSP. Without the
preinstall build target each header file must have a unique source
header file.

Update #3254.

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