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