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

4.115
Last change on this file since 0b03ca39 was f73cfe99, checked in by Ralf Kirchner <ralf.kirchner@…>, on 07/31/13 at 07:45:59

bsp/altera-cyclone-v: New BSP

Implemented so far:

  • nocache heap for uncached RAM
  • basic timer
  • level 1 cache handling for arm cache controller in arm-cache-l1.h
  • level 2 L2C-310 cache controller
  • MMU
  • DWMAC 1000 ethernet controller
  • basic errata handling
  • smp startup for second core
  • Property mode set to 100644
File size: 7.5 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_libcpudir = $(includedir)/libcpu
14
15dist_project_lib_DATA = bsp_specs
16
17###############################################################################
18#                  Header                                                     #
19###############################################################################
20
21include_HEADERS = include/bsp.h
22include_HEADERS += include/tm27.h
23
24nodist_include_HEADERS = ../../shared/include/coverhd.h \
25        include/bspopts.h
26
27nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
28
29include_bsp_HEADERS =
30include_bsp_HEADERS += ../../shared/include/utility.h
31include_bsp_HEADERS += ../../shared/include/irq-generic.h
32include_bsp_HEADERS += ../../shared/include/irq-info.h
33include_bsp_HEADERS += ../../shared/include/stackalloc.h
34include_bsp_HEADERS += ../../shared/tod.h
35include_bsp_HEADERS += ../shared/include/start.h
36include_bsp_HEADERS += ../shared/include/arm-a9mpcore-clock.h
37include_bsp_HEADERS += ../shared/include/arm-a9mpcore-irq.h
38include_bsp_HEADERS += ../shared/include/arm-a9mpcore-regs.h
39include_bsp_HEADERS += ../shared/include/arm-a9mpcore-start.h
40include_bsp_HEADERS += ../shared/include/arm-cp15-start.h
41include_bsp_HEADERS += ../shared/include/arm-errata.h
42include_bsp_HEADERS += ../shared/include/arm-gic.h
43include_bsp_HEADERS += ../shared/include/arm-gic-irq.h
44include_bsp_HEADERS += ../shared/include/arm-gic-regs.h
45include_bsp_HEADERS += ../shared/include/arm-gic-tm27.h
46include_bsp_HEADERS += ../shared/include/arm-release-id.h
47include_bsp_HEADERS += include/irq.h
48include_bsp_HEADERS += include/nocache-heap.h
49
50# Altera hwlib
51include_bsp_HEADERS += hwlib/include/alt_address_space.h
52include_bsp_HEADERS += hwlib/include/alt_clock_group.h
53include_bsp_HEADERS += hwlib/include/alt_clock_manager.h
54include_bsp_HEADERS += hwlib/include/alt_generalpurpose_io.h
55include_bsp_HEADERS += hwlib/include/alt_hwlibs_ver.h
56include_bsp_HEADERS += hwlib/include/alt_interrupt_common.h
57include_bsp_HEADERS += hwlib/include/alt_mpu_registers.h
58include_bsp_HEADERS += hwlib/include/alt_reset_manager.h
59include_bsp_HEADERS += hwlib/include/hwlib.h
60#The following Altera hwlib header files have been left out because so far
61#they are not required:
62#include_bsp_HEADERS += hwlib/include/alt_16550_uart.h
63#include_bsp_HEADERS += hwlib/include/alt_bridge_manager.h
64#include_bsp_HEADERS += hwlib/include/alt_dma_common.h
65#include_bsp_HEADERS += hwlib/include/alt_dma_program.h
66#include_bsp_HEADERS += hwlib/include/alt_dma.h
67#include_bsp_HEADERS += hwlib/include/alt_fpga_manager.h
68#include_bsp_HEADERS += hwlib/include/alt_globaltmr.h
69#include_bsp_HEADERS += hwlib/include/alt_system_manager.h
70#include_bsp_HEADERS += hwlib/include/alt_timers.h
71#include_bsp_HEADERS += hwlib/include/alt_watchdog.h
72#The following Altera hwlib headers would be problematic with RTEMS:
73#include_bsp_HEADERS += hwlib/include/alt_interrupt.h
74#All header files from hwlib/include/socal are regarded as BSP
75#internal and thus not installed
76
77include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h
78
79
80
81###############################################################################
82#                  Data                                                       #
83###############################################################################
84
85noinst_LIBRARIES = libbspstart.a
86
87libbspstart_a_SOURCES = ../shared/start/start.S
88
89project_lib_DATA = start.$(OBJEXT)
90
91project_lib_DATA += startup/linkcmds
92project_lib_DATA += startup/linkcmds.altcycv
93project_lib_DATA += startup/linkcmds.altcycv_devkit
94project_lib_DATA += startup/linkcmds.altcycv_devkit_smp
95
96###############################################################################
97#                  LibBSP                                                     #
98###############################################################################
99
100noinst_LIBRARIES += libbsp.a
101
102libbsp_a_SOURCES =
103libbsp_a_CPPFLAGS =
104libbsp_a_LIBADD =
105
106# for the Altera hwlib
107libbsp_a_CPPFLAGS += -I ${srcdir}/hwlib/include
108libbsp_a_CPPFLAGS += -std=gnu99
109
110# hwlib from Altera
111libbsp_a_SOURCES += hwlib/src/hwmgr/alt_address_space.c
112libbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c
113libbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c
114libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c
115#The following Altera hwlib source files have been left out because so far
116#they are not required:
117#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c
118#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c
119#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c
120#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c
121#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_fpga_manager.c
122#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_globaltmr.c
123#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_system_manager.c
124#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_timers.c
125#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_watchdog.c
126# The following Altera hwlib source files would be problematic with RTEMS:
127#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_interrupt.c
128
129
130# Shared
131libbsp_a_SOURCES += ../../shared/bootcard.c
132libbsp_a_SOURCES += ../../shared/bspclean.c
133libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
134libbsp_a_SOURCES += ../../shared/bsplibc.c
135libbsp_a_SOURCES += ../../shared/bsppost.c
136libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
137libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
138libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
139libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
140libbsp_a_SOURCES += ../../shared/sbrk.c
141libbsp_a_SOURCES += ../../shared/timerstub.c
142libbsp_a_SOURCES += ../../shared/src/stackalloc.c
143libbsp_a_SOURCES += ../shared/abort/simple_abort.c
144libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
145libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
146libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
147
148# Startup
149libbsp_a_SOURCES += startup/bspreset.c
150libbsp_a_SOURCES += startup/bspstart.c
151libbsp_a_SOURCES += startup/nocache-heap.c
152
153# IRQ
154libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
155libbsp_a_SOURCES += ../../shared/src/irq-generic.c
156libbsp_a_SOURCES += ../../shared/src/irq-info.c
157libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
158libbsp_a_SOURCES += ../../shared/src/irq-server.c
159libbsp_a_SOURCES += ../../shared/src/irq-shell.c
160libbsp_a_SOURCES += ../shared/arm-gic-irq.c
161
162# Network
163libbsp_a_SOURCES += network/network.c
164
165# Console
166libbsp_a_SOURCES += ../../shared/console.c
167libbsp_a_SOURCES += ../../shared/console_control.c
168libbsp_a_SOURCES += ../../shared/console_read.c
169libbsp_a_SOURCES += ../../shared/console_select_simple.c
170libbsp_a_SOURCES += ../../shared/console_write.c
171libbsp_a_SOURCES += console/console-config.c
172
173# Clock
174libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
175libbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c
176
177# Cache
178libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
179libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h
180libbsp_a_SOURCES += ../shared/arm-l2c-310/cache_.h
181libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/arm-l2c-310
182
183# Start hooks
184libbsp_a_SOURCES += startup/bspstarthooks.c
185
186if HAS_SMP
187libbsp_a_SOURCES += ../shared/arm-a9mpcore-smp.c
188endif
189
190###############################################################################
191#                  Special Rules                                              #
192###############################################################################
193
194DISTCLEANFILES = include/bspopts.h
195
196include $(srcdir)/preinstall.am
197include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.