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

Last change on this file since f3ce8f41 was f3ce8f41, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 2, 2018 at 7:00:02 AM

bsps: Include bsp.am in all BSP Makefile.am

Update #3254.

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