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