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

4.115
Last change on this file since 76386c1 was 76386c1, checked in by Sebastian Huber <sebastian.huber@…>, on 08/26/14 at 14:00:44

bsp/altera-cyclone-v: Add DMA support hwlib files

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