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

4.115
Last change on this file since 19260fb was 2a1d86c, checked in by Sebastian Huber <sebastian.huber@…>, on Jun 5, 2014 at 8:03:06 AM

bsp/altera-cyclone-v: Move SMP support

  • 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
109CFLAGS += -Wno-missing-prototypes
110
111# hwlib from Altera
112libbsp_a_SOURCES += hwlib/src/hwmgr/alt_address_space.c
113libbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c
114libbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c
115libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c
116#The following Altera hwlib source files have been left out because so far
117#they are not required:
118#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c
119#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c
120#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c
121#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c
122#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_fpga_manager.c
123#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_globaltmr.c
124#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_system_manager.c
125#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_timers.c
126#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_watchdog.c
127# The following Altera hwlib source files would be problematic with RTEMS:
128#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_interrupt.c
129
130
131# Shared
132libbsp_a_SOURCES += ../../shared/bootcard.c
133libbsp_a_SOURCES += ../../shared/bspclean.c
134libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
135libbsp_a_SOURCES += ../../shared/bsplibc.c
136libbsp_a_SOURCES += ../../shared/bsppost.c
137libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
138libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
139libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
140libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
141libbsp_a_SOURCES += ../../shared/sbrk.c
142libbsp_a_SOURCES += ../../shared/timerstub.c
143libbsp_a_SOURCES += ../../shared/src/stackalloc.c
144libbsp_a_SOURCES += ../shared/abort/simple_abort.c
145libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
146libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
147libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
148
149# Startup
150libbsp_a_SOURCES += startup/bspreset.c
151libbsp_a_SOURCES += startup/bspstart.c
152libbsp_a_SOURCES += startup/bspstarthooks.c
153libbsp_a_SOURCES += startup/nocache-heap.c
154if HAS_SMP
155libbsp_a_SOURCES += startup/bspsmp.c
156endif
157
158# IRQ
159libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
160libbsp_a_SOURCES += ../../shared/src/irq-generic.c
161libbsp_a_SOURCES += ../../shared/src/irq-info.c
162libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
163libbsp_a_SOURCES += ../../shared/src/irq-server.c
164libbsp_a_SOURCES += ../../shared/src/irq-shell.c
165libbsp_a_SOURCES += ../shared/arm-gic-irq.c
166
167# Network
168libbsp_a_SOURCES += network/network.c
169
170# Console
171libbsp_a_SOURCES += ../../shared/console.c
172libbsp_a_SOURCES += ../../shared/console_control.c
173libbsp_a_SOURCES += ../../shared/console_read.c
174libbsp_a_SOURCES += ../../shared/console_select_simple.c
175libbsp_a_SOURCES += ../../shared/console_write.c
176libbsp_a_SOURCES += console/console-config.c
177
178# Clock
179libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
180libbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c
181
182# Cache
183libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
184libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h
185libbsp_a_SOURCES += ../shared/arm-l2c-310/cache_.h
186libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/arm-l2c-310
187
188###############################################################################
189#                  Special Rules                                              #
190###############################################################################
191
192DISTCLEANFILES = include/bspopts.h
193
194include $(srcdir)/preinstall.am
195include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.