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

Last change on this file since f0e5e17 was f0e5e17, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 19, 2017 at 10:42:10 AM

bsp/altera-cyclone-v: Adjust work area

Use FDT to adjust the work area. Reduce work area of linker command
file.

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