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