source: rtems/c/src/lib/libbsp/arm/lpc24xx/Makefile.am @ a0663b2

5
Last change on this file since a0663b2 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.6 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC24XX boards.
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
21
22nodist_include_HEADERS = include/bspopts.h
23
24nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
25
26include_bsp_HEADERS =
27include_bsp_HEADERS += ../../shared/include/utility.h
28include_bsp_HEADERS += ../../shared/include/irq-generic.h
29include_bsp_HEADERS += ../../shared/include/irq-info.h
30include_bsp_HEADERS += ../../shared/include/stackalloc.h
31include_bsp_HEADERS += ../../shared/include/uart-output-char.h
32include_bsp_HEADERS += ../shared/include/start.h
33include_bsp_HEADERS += ../shared/include/arm-pl111-fb.h
34include_bsp_HEADERS += ../shared/include/arm-pl111-regs.h
35include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
36include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
37include_bsp_HEADERS += ../shared/lpc/include/lpc-emc.h
38include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
39include_bsp_HEADERS += ../shared/lpc/include/lpc-lcd.h
40include_bsp_HEADERS += ../shared/armv7m/include/armv7m-irq.h
41include_bsp_HEADERS += include/dma.h
42include_bsp_HEADERS += include/i2c.h
43include_bsp_HEADERS += include/io.h
44include_bsp_HEADERS += include/irq.h
45include_bsp_HEADERS += include/lcd.h
46include_bsp_HEADERS += include/lpc17xx.h
47include_bsp_HEADERS += include/lpc24xx.h
48include_bsp_HEADERS += include/lpc-clock-config.h
49include_bsp_HEADERS += include/lpc-ethernet-config.h
50include_bsp_HEADERS += include/ssp.h
51include_bsp_HEADERS += include/start-config.h
52include_bsp_HEADERS += include/system-clocks.h
53
54include_HEADERS += include/tm27.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 += startup/linkcmds.lpc17xx_ea_ram
68project_lib_DATA += startup/linkcmds.lpc17xx_ea_rom_int
69project_lib_DATA += startup/linkcmds.lpc17xx_plx800_ram
70project_lib_DATA += startup/linkcmds.lpc17xx_plx800_rom_int
71project_lib_DATA += startup/linkcmds.lpc2362
72project_lib_DATA += startup/linkcmds.lpc23xx_tli800
73project_lib_DATA += startup/linkcmds.lpc24xx_ea
74project_lib_DATA += startup/linkcmds.lpc24xx_ncs_ram
75project_lib_DATA += startup/linkcmds.lpc24xx_ncs_rom_ext
76project_lib_DATA += startup/linkcmds.lpc24xx_ncs_rom_int
77project_lib_DATA += startup/linkcmds.lpc24xx_plx800_ram
78project_lib_DATA += startup/linkcmds.lpc24xx_plx800_rom_int
79project_lib_DATA += startup/linkcmds.lpc40xx_ea_ram
80project_lib_DATA += startup/linkcmds.lpc40xx_ea_rom_int
81
82###############################################################################
83#                  LibBSP                                                     #
84###############################################################################
85
86noinst_LIBRARIES += libbsp.a
87
88libbsp_a_SOURCES =
89libbsp_a_CPPFLAGS =
90libbsp_a_LIBADD =
91
92# Shared
93libbsp_a_SOURCES += ../../shared/bootcard.c \
94        ../../shared/getentropy-cpucounter.c \
95        ../../shared/bspclean.c \
96        ../../shared/bspgetworkarea.c \
97        ../../shared/bsppredriverhook.c \
98        ../../shared/gnatinstallhandler.c \
99        ../../shared/sbrk.c \
100        ../../shared/src/stackalloc.c \
101        ../../shared/src/uart-output-char.c
102libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
103
104# Startup
105libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
106libbsp_a_SOURCES += ../shared/armv7m/startup/bspreset.c
107libbsp_a_SOURCES += startup/bspreset-armv4.c
108libbsp_a_SOURCES += startup/bspstart.c
109
110# IRQ
111libbsp_a_SOURCES += ../../shared/src/irq-default-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 += ../shared/armv7m/irq/armv7m-irq.c
118libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
119libbsp_a_SOURCES += irq/irq.c
120libbsp_a_SOURCES += irq/irq-dispatch.c
121
122# Console
123libbsp_a_SOURCES += ../../shared/console-termios-init.c
124libbsp_a_SOURCES += ../../shared/console-termios.c
125libbsp_a_SOURCES += console/console-config.c
126libbsp_a_SOURCES += console/uart-probe-1.c
127libbsp_a_SOURCES += console/uart-probe-2.c
128libbsp_a_SOURCES += console/uart-probe-3.c
129
130# Clock
131libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
132libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
133libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c
134
135# RTC
136libbsp_a_SOURCES += ../../shared/tod.c \
137        rtc/rtc-config.c
138
139# Misc
140libbsp_a_SOURCES += misc/system-clocks.c \
141        misc/dma.c \
142        misc/dma-copy.c \
143        misc/bspidle.c \
144        misc/io.c \
145        misc/lcd.c \
146        misc/restart.c \
147        misc/timer.c
148
149# SSP
150libbsp_a_SOURCES += ssp/ssp.c
151
152# I2C
153libbsp_a_SOURCES += i2c/i2c.c \
154        i2c/i2c-config.c
155
156# Framebuffer
157libbsp_a_SOURCES += ../shared/arm-pl111-fb.c
158libbsp_a_SOURCES += startup/fb-config.c
159
160# Cache
161libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
162libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
163libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
164
165# Start hooks
166libbsp_a_SOURCES += startup/bspstarthooks.c
167libbsp_a_SOURCES += startup/start-config-emc-dynamic.c
168libbsp_a_SOURCES += startup/start-config-emc-static.c
169libbsp_a_SOURCES += startup/start-config-mpu.c
170libbsp_a_SOURCES += startup/start-config-pinsel.c
171
172###############################################################################
173#                  Network                                                    #
174###############################################################################
175
176if HAS_NETWORKING
177
178noinst_PROGRAMS = network.rel
179
180network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
181network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
182network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
183
184libbsp_a_LIBADD += network.rel
185
186endif
187
188###############################################################################
189#                  Special Rules                                              #
190###############################################################################
191
192DISTCLEANFILES = include/bspopts.h
193
194include $(srcdir)/preinstall.am
195include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.