source: rtems/c/src/lib/libbsp/arm/lpc32xx/Makefile.am @ 2717032d

Last change on this file since 2717032d was 2717032d, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 14, 2017 at 6:15:19 AM

bsps/arm: Fix move <libcpu/arm-cp15.h> to cpukit

Update #3254.

  • Property mode set to 100644
File size: 5.8 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC32XX 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
21include_HEADERS += include/tm27.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-cp15-start.h
35include_bsp_HEADERS += ../shared/include/arm-errata.h
36include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
37include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.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-lcd.h
41include_bsp_HEADERS += ../shared/include/arm-release-id.h
42include_bsp_HEADERS += include/irq.h
43include_bsp_HEADERS += include/mmu.h
44include_bsp_HEADERS += include/lpc32xx.h
45include_bsp_HEADERS += include/lpc-clock-config.h
46include_bsp_HEADERS += include/lpc-ethernet-config.h
47include_bsp_HEADERS += include/nand-mlc.h
48include_bsp_HEADERS += include/boot.h
49include_bsp_HEADERS += include/hsu.h
50include_bsp_HEADERS += include/i2c.h
51include_bsp_HEADERS += include/emc.h
52
53###############################################################################
54#                  Data                                                       #
55###############################################################################
56
57noinst_LIBRARIES = libbspstart.a
58
59libbspstart_a_SOURCES = ../shared/start/start.S
60
61project_lib_DATA = start.$(OBJEXT)
62
63project_lib_DATA += startup/linkcmds
64project_lib_DATA += startup/linkcmds.lpc32xx
65
66EXTRA_DIST = startup/linkcmds.lpc32xx_phycore \
67        startup/linkcmds.lpc32xx_mzx_stage_1 \
68        startup/linkcmds.lpc32xx_mzx_stage_2 \
69        startup/linkcmds.lpc32xx_mzx
70
71###############################################################################
72#                  LibBSP                                                     #
73###############################################################################
74
75noinst_LIBRARIES += libbsp.a
76
77libbsp_a_SOURCES =
78libbsp_a_CPPFLAGS =
79libbsp_a_LIBADD =
80
81# Shared
82libbsp_a_SOURCES += ../../shared/bootcard.c
83libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
84libbsp_a_SOURCES += ../../shared/bspclean.c
85libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
86libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
87libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
88libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
89libbsp_a_SOURCES += ../../shared/sbrk.c
90libbsp_a_SOURCES += ../../shared/src/stackalloc.c
91libbsp_a_SOURCES += ../../shared/src/uart-output-char.c
92libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
93libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
94
95# Startup
96libbsp_a_SOURCES += startup/bspreset.c
97libbsp_a_SOURCES += startup/bspstart.c
98
99# IRQ
100libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
101libbsp_a_SOURCES += ../../shared/src/irq-generic.c
102libbsp_a_SOURCES += ../../shared/src/irq-info.c
103libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
104libbsp_a_SOURCES += ../../shared/src/irq-server.c
105libbsp_a_SOURCES += ../../shared/src/irq-shell.c
106libbsp_a_SOURCES += irq/irq.c
107
108# Console
109libbsp_a_SOURCES += ../../shared/console-termios-init.c
110libbsp_a_SOURCES += ../../shared/console-termios.c
111libbsp_a_SOURCES += console/console-config.c
112libbsp_a_SOURCES += console/hsu.c
113
114# Clock
115libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
116libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
117
118# RTC
119libbsp_a_SOURCES += ../../shared/tod.c \
120        rtc/rtc-config.c
121
122# Misc
123libbsp_a_SOURCES += misc/boot.c
124libbsp_a_SOURCES += misc/emc.c
125libbsp_a_SOURCES += misc/i2c.c
126libbsp_a_SOURCES += misc/nand-mlc.c
127libbsp_a_SOURCES += misc/nand-mlc-erase-block-safe.c
128libbsp_a_SOURCES += misc/nand-mlc-read-blocks.c
129libbsp_a_SOURCES += misc/nand-mlc-write-blocks.c
130libbsp_a_SOURCES += misc/restart.c
131libbsp_a_SOURCES += misc/system-clocks.c
132libbsp_a_SOURCES += misc/timer.c
133libbsp_a_SOURCES += misc/nand-select.c
134libbsp_a_SOURCES += misc/idle-thread.c
135
136# SSP
137
138# I2C
139
140# Cache
141libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
142libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h
143libbsp_a_SOURCES += ../shared/armv467ar-basic-cache/cache_.h
144libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/armv467ar-basic-cache
145
146
147# Start hooks
148libbsp_a_SOURCES += startup/bspstarthooks.c
149
150###############################################################################
151#                  Network                                                    #
152###############################################################################
153
154if HAS_NETWORKING
155
156noinst_PROGRAMS = network.rel
157
158network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
159network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
160network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
161
162libbsp_a_LIBADD += network.rel
163
164endif
165
166###############################################################################
167#                  Special Rules                                              #
168###############################################################################
169
170DISTCLEANFILES = include/bspopts.h
171
172include $(srcdir)/preinstall.am
173include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.