1 | ## |
---|
2 | # |
---|
3 | # @file |
---|
4 | # |
---|
5 | # @brief Makefile of LibBSP for the Altera Cyclone-V platform. |
---|
6 | # |
---|
7 | |
---|
8 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
9 | |
---|
10 | include $(top_srcdir)/../../../../automake/compile.am |
---|
11 | |
---|
12 | include_bspdir = $(includedir)/bsp |
---|
13 | include_bsp_socaldir = $(includedir)/bsp/socal |
---|
14 | include_libcpudir = $(includedir)/libcpu |
---|
15 | |
---|
16 | dist_project_lib_DATA = bsp_specs |
---|
17 | |
---|
18 | ############################################################################### |
---|
19 | # Header # |
---|
20 | ############################################################################### |
---|
21 | |
---|
22 | include_HEADERS = include/bsp.h |
---|
23 | include_HEADERS += include/tm27.h |
---|
24 | |
---|
25 | nodist_include_HEADERS = ../../shared/include/coverhd.h \ |
---|
26 | include/bspopts.h |
---|
27 | |
---|
28 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
29 | |
---|
30 | include_bsp_HEADERS = |
---|
31 | include_bsp_socal_HEADERS = |
---|
32 | |
---|
33 | include_bsp_HEADERS += ../../shared/include/utility.h |
---|
34 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
35 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
36 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
37 | include_bsp_HEADERS += ../../shared/tod.h |
---|
38 | include_bsp_HEADERS += ../shared/include/start.h |
---|
39 | include_bsp_HEADERS += ../shared/include/arm-a9mpcore-clock.h |
---|
40 | include_bsp_HEADERS += ../shared/include/arm-a9mpcore-irq.h |
---|
41 | include_bsp_HEADERS += ../shared/include/arm-a9mpcore-regs.h |
---|
42 | include_bsp_HEADERS += ../shared/include/arm-a9mpcore-start.h |
---|
43 | include_bsp_HEADERS += ../shared/include/arm-cp15-start.h |
---|
44 | include_bsp_HEADERS += ../shared/include/arm-errata.h |
---|
45 | include_bsp_HEADERS += ../shared/include/arm-gic.h |
---|
46 | include_bsp_HEADERS += ../shared/include/arm-gic-irq.h |
---|
47 | include_bsp_HEADERS += ../shared/include/arm-gic-regs.h |
---|
48 | include_bsp_HEADERS += ../shared/include/arm-gic-tm27.h |
---|
49 | include_bsp_HEADERS += ../shared/include/arm-release-id.h |
---|
50 | include_bsp_HEADERS += include/irq.h |
---|
51 | include_bsp_HEADERS += include/nocache-heap.h |
---|
52 | |
---|
53 | # Altera hwlib |
---|
54 | include_bsp_HEADERS += hwlib/include/alt_address_space.h |
---|
55 | include_bsp_HEADERS += hwlib/include/alt_clock_group.h |
---|
56 | include_bsp_HEADERS += hwlib/include/alt_clock_manager.h |
---|
57 | include_bsp_HEADERS += hwlib/include/alt_generalpurpose_io.h |
---|
58 | include_bsp_HEADERS += hwlib/include/alt_hwlibs_ver.h |
---|
59 | include_bsp_HEADERS += hwlib/include/alt_i2c.h |
---|
60 | include_bsp_HEADERS += hwlib/include/alt_interrupt_common.h |
---|
61 | include_bsp_HEADERS += hwlib/include/alt_mpu_registers.h |
---|
62 | include_bsp_HEADERS += hwlib/include/alt_reset_manager.h |
---|
63 | include_bsp_HEADERS += hwlib/include/hwlib.h |
---|
64 | #The following Altera hwlib header files have been left out because so far |
---|
65 | #they are not required: |
---|
66 | #include_bsp_HEADERS += hwlib/include/alt_16550_uart.h |
---|
67 | #include_bsp_HEADERS += hwlib/include/alt_bridge_manager.h |
---|
68 | #include_bsp_HEADERS += hwlib/include/alt_dma_common.h |
---|
69 | #include_bsp_HEADERS += hwlib/include/alt_dma_program.h |
---|
70 | #include_bsp_HEADERS += hwlib/include/alt_dma.h |
---|
71 | #include_bsp_HEADERS += hwlib/include/alt_fpga_manager.h |
---|
72 | #include_bsp_HEADERS += hwlib/include/alt_globaltmr.h |
---|
73 | #include_bsp_HEADERS += hwlib/include/alt_system_manager.h |
---|
74 | #include_bsp_HEADERS += hwlib/include/alt_timers.h |
---|
75 | #include_bsp_HEADERS += hwlib/include/alt_watchdog.h |
---|
76 | #The following Altera hwlib headers would be problematic with RTEMS: |
---|
77 | #include_bsp_HEADERS += hwlib/include/alt_interrupt.h |
---|
78 | |
---|
79 | # Some of the headers from hwlib need the files from socal. Install them. |
---|
80 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_acpidmap.h |
---|
81 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_clkmgr.h |
---|
82 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_gpio.h |
---|
83 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_i2c.h |
---|
84 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_l3.h |
---|
85 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_rstmgr.h |
---|
86 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_sdr.h |
---|
87 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_sysmgr.h |
---|
88 | include_bsp_socal_HEADERS += hwlib/include/socal/alt_uart.h |
---|
89 | include_bsp_socal_HEADERS += hwlib/include/socal/hps.h |
---|
90 | include_bsp_socal_HEADERS += hwlib/include/socal/socal.h |
---|
91 | |
---|
92 | include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h |
---|
93 | |
---|
94 | |
---|
95 | |
---|
96 | ############################################################################### |
---|
97 | # Data # |
---|
98 | ############################################################################### |
---|
99 | |
---|
100 | noinst_LIBRARIES = libbspstart.a |
---|
101 | |
---|
102 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
103 | |
---|
104 | project_lib_DATA = start.$(OBJEXT) |
---|
105 | |
---|
106 | project_lib_DATA += startup/linkcmds |
---|
107 | project_lib_DATA += startup/linkcmds.altcycv |
---|
108 | project_lib_DATA += startup/linkcmds.altcycv_devkit |
---|
109 | project_lib_DATA += startup/linkcmds.altcycv_devkit_smp |
---|
110 | |
---|
111 | ############################################################################### |
---|
112 | # LibBSP # |
---|
113 | ############################################################################### |
---|
114 | |
---|
115 | noinst_LIBRARIES += libbsp.a |
---|
116 | |
---|
117 | libbsp_a_SOURCES = |
---|
118 | libbsp_a_CPPFLAGS = |
---|
119 | libbsp_a_LIBADD = |
---|
120 | |
---|
121 | # for the Altera hwlib |
---|
122 | libbsp_a_CPPFLAGS += -I${srcdir}/hwlib/include |
---|
123 | libbsp_a_CPPFLAGS += -std=gnu99 |
---|
124 | CFLAGS += -Wno-missing-prototypes |
---|
125 | |
---|
126 | # hwlib from Altera |
---|
127 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_address_space.c |
---|
128 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c |
---|
129 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c |
---|
130 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_i2c.c |
---|
131 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c |
---|
132 | #The following Altera hwlib source files have been left out because so far |
---|
133 | #they are not required: |
---|
134 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c |
---|
135 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c |
---|
136 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c |
---|
137 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c |
---|
138 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_fpga_manager.c |
---|
139 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_globaltmr.c |
---|
140 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_system_manager.c |
---|
141 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_timers.c |
---|
142 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_watchdog.c |
---|
143 | # The following Altera hwlib source files would be problematic with RTEMS: |
---|
144 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_interrupt.c |
---|
145 | |
---|
146 | |
---|
147 | # Shared |
---|
148 | libbsp_a_SOURCES += ../../shared/bootcard.c |
---|
149 | libbsp_a_SOURCES += ../../shared/bspclean.c |
---|
150 | libbsp_a_SOURCES += ../../shared/bspgetworkarea.c |
---|
151 | libbsp_a_SOURCES += ../../shared/bsplibc.c |
---|
152 | libbsp_a_SOURCES += ../../shared/bsppost.c |
---|
153 | libbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
154 | libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c |
---|
155 | libbsp_a_SOURCES += ../../shared/cpucounterdiff.c |
---|
156 | libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c |
---|
157 | libbsp_a_SOURCES += ../../shared/sbrk.c |
---|
158 | libbsp_a_SOURCES += ../../shared/timerstub.c |
---|
159 | libbsp_a_SOURCES += ../../shared/src/stackalloc.c |
---|
160 | libbsp_a_SOURCES += ../shared/abort/simple_abort.c |
---|
161 | libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
162 | libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c |
---|
163 | libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c |
---|
164 | |
---|
165 | # Startup |
---|
166 | libbsp_a_SOURCES += startup/bspreset.c |
---|
167 | libbsp_a_SOURCES += startup/bspstart.c |
---|
168 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
169 | libbsp_a_SOURCES += startup/nocache-heap.c |
---|
170 | libbsp_a_SOURCES += startup/mmu-config.c |
---|
171 | if HAS_SMP |
---|
172 | libbsp_a_SOURCES += startup/bspsmp.c |
---|
173 | endif |
---|
174 | |
---|
175 | # IRQ |
---|
176 | libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c |
---|
177 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c |
---|
178 | libbsp_a_SOURCES += ../../shared/src/irq-info.c |
---|
179 | libbsp_a_SOURCES += ../../shared/src/irq-legacy.c |
---|
180 | libbsp_a_SOURCES += ../../shared/src/irq-server.c |
---|
181 | libbsp_a_SOURCES += ../../shared/src/irq-shell.c |
---|
182 | libbsp_a_SOURCES += ../shared/arm-gic-irq.c |
---|
183 | |
---|
184 | # Network |
---|
185 | libbsp_a_SOURCES += network/network.c |
---|
186 | |
---|
187 | # Console |
---|
188 | libbsp_a_SOURCES += ../../shared/console.c |
---|
189 | libbsp_a_SOURCES += ../../shared/console_control.c |
---|
190 | libbsp_a_SOURCES += ../../shared/console_read.c |
---|
191 | libbsp_a_SOURCES += ../../shared/console_select_simple.c |
---|
192 | libbsp_a_SOURCES += ../../shared/console_write.c |
---|
193 | libbsp_a_SOURCES += console/console-config.c |
---|
194 | |
---|
195 | # Clock |
---|
196 | libbsp_a_SOURCES += ../../shared/clockdrv_shell.h |
---|
197 | libbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c |
---|
198 | |
---|
199 | # I2C |
---|
200 | libbsp_a_SOURCES += i2c/i2cdrv.c |
---|
201 | libbsp_a_SOURCES += i2c/i2cdrv-config.c |
---|
202 | include_bsp_HEADERS += include/i2cdrv.h |
---|
203 | |
---|
204 | # RTC |
---|
205 | libbsp_a_SOURCES += ../../shared/tod.c |
---|
206 | libbsp_a_SOURCES += rtc/rtc.c |
---|
207 | |
---|
208 | # Cache |
---|
209 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c |
---|
210 | libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h |
---|
211 | libbsp_a_SOURCES += ../shared/arm-l2c-310/cache_.h |
---|
212 | libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/arm-l2c-310 |
---|
213 | |
---|
214 | ############################################################################### |
---|
215 | # Special Rules # |
---|
216 | ############################################################################### |
---|
217 | |
---|
218 | DISTCLEANFILES = include/bspopts.h |
---|
219 | |
---|
220 | include $(srcdir)/preinstall.am |
---|
221 | include $(top_srcdir)/../../../../automake/local.am |
---|