source: rtems/c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am @ 50440c0

4.115
Last change on this file since 50440c0 was 50440c0, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 19, 2014 at 2:30:24 PM

bsps/arm: Enable L2C for Cortex-A9 MPCore BSPs

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