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

4.115
Last change on this file since 8fbe2e6 was 6cdc090, checked in by Sebastian Huber <sebastian.huber@…>, on 08/10/14 at 16:35:27

bsp/lpc24xx: Add LPC40XX variants

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