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

5
Last change on this file since 78c9fe8 was ca4602e, checked in by Sebastian Huber <sebastian.huber@…>, on 01/25/16 at 21:03:00

Use linker set for libio initialization

Update #2408.

  • Property mode set to 100644
File size: 5.4 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/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
51
52include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/cache_.h \
53    ../../../libcpu/arm/shared/include/arm-cp15.h
54
55###############################################################################
56# Data                                                       #
57###############################################################################
58
59noinst_LIBRARIES = libbspstart.a
60
61libbspstart_a_SOURCES = ../shared/start/start.S
62
63project_lib_DATA = start.$(OBJEXT)
64
65project_lib_DATA += startup/linkcmds
66project_lib_DATA += ../shared/startup/linkcmds.base
67
68EXTRA_DIST = startup/linkcmds
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/bspclean.c
83libbsp_a_SOURCES += ../../shared/bspgetworkarea.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
92
93# Startup
94libbsp_a_SOURCES += ../../shared/bspreset_loop.c
95libbsp_a_SOURCES += startup/bspstart.c
96
97# IRQ
98libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
99libbsp_a_SOURCES += ../../shared/src/irq-generic.c
100libbsp_a_SOURCES += ../../shared/src/irq-info.c
101libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
102libbsp_a_SOURCES += ../../shared/src/irq-server.c
103libbsp_a_SOURCES += ../../shared/src/irq-shell.c
104libbsp_a_SOURCES += irq/irq.c
105
106# Console
107libbsp_a_SOURCES += ../../shared/console.c
108libbsp_a_SOURCES += ../../shared/console_control.c
109libbsp_a_SOURCES += ../../shared/console_read.c
110libbsp_a_SOURCES += ../../shared/console_select.c
111libbsp_a_SOURCES += ../../shared/console_write.c
112libbsp_a_SOURCES += console/console-config.c
113libbsp_a_SOURCES += console/usart.c
114
115# clock
116libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
117
118# Timer
119libbsp_a_SOURCES += misc/timer.c
120
121# GPIO
122libbsp_a_SOURCES += ../../shared/gpio.c
123libbsp_a_SOURCES += gpio/rpi-gpio.c
124
125# RTC
126
127# SSP
128
129# I2C
130libbsp_a_SOURCES += i2c/i2c.c
131
132# SPI
133libbsp_a_SOURCES += spi/spi.c
134
135# Cache
136libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
137libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
138libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
139
140# Start hooks
141libbsp_a_SOURCES += startup/bspstarthooks.c
142
143# LIBMM
144libbsp_a_SOURCES += startup/mm_config_table.c
145libbsp_a_SOURCES += ../shared/mminit.c
146
147###############################################################################
148# Network                                                    #
149###############################################################################
150
151#if HAS_NETWORKING
152#
153#noinst_PROGRAMS = network.rel
154#
155#network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
156#network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
157#network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
158#
159#
160#libbsp_a_LIBADD += network.rel
161#
162#endif
163
164###############################################################################
165#                  Special Rules                                              #
166###############################################################################
167
168DISTCLEANFILES = include/bspopts.h
169
170include $(srcdir)/preinstall.am
171include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.