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

4.115
Last change on this file since 81329f9 was 81329f9, checked in by Christian Mauderer <Christian.Mauderer@…>, on 07/15/14 at 14:20:37

bsp/altera-cyclone-v: Add RTC driver.

  • Property mode set to 100644
File size: 8.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_bsp_socaldir = $(includedir)/bsp/socal
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 =
31include_bsp_socal_HEADERS =
32
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
54include_bsp_HEADERS += hwlib/include/alt_address_space.h
55include_bsp_HEADERS += hwlib/include/alt_clock_group.h
56include_bsp_HEADERS += hwlib/include/alt_clock_manager.h
57include_bsp_HEADERS += hwlib/include/alt_generalpurpose_io.h
58include_bsp_HEADERS += hwlib/include/alt_hwlibs_ver.h
59include_bsp_HEADERS += hwlib/include/alt_i2c.h
60include_bsp_HEADERS += hwlib/include/alt_interrupt_common.h
61include_bsp_HEADERS += hwlib/include/alt_mpu_registers.h
62include_bsp_HEADERS += hwlib/include/alt_reset_manager.h
63include_bsp_HEADERS += hwlib/include/hwlib.h
64#The following Altera hwlib header files have been left out because so far
65#they are not required:
66#include_bsp_HEADERS += hwlib/include/alt_16550_uart.h
67#include_bsp_HEADERS += hwlib/include/alt_bridge_manager.h
68#include_bsp_HEADERS += hwlib/include/alt_dma_common.h
69#include_bsp_HEADERS += hwlib/include/alt_dma_program.h
70#include_bsp_HEADERS += hwlib/include/alt_dma.h
71#include_bsp_HEADERS += hwlib/include/alt_fpga_manager.h
72#include_bsp_HEADERS += hwlib/include/alt_globaltmr.h
73#include_bsp_HEADERS += hwlib/include/alt_system_manager.h
74#include_bsp_HEADERS += hwlib/include/alt_timers.h
75#include_bsp_HEADERS += hwlib/include/alt_watchdog.h
76#The following Altera hwlib headers would be problematic with RTEMS:
77#include_bsp_HEADERS += hwlib/include/alt_interrupt.h
78
79# Some of the headers from hwlib need the files from socal. Install them.
80include_bsp_socal_HEADERS += hwlib/include/socal/alt_clkmgr.h
81include_bsp_socal_HEADERS += hwlib/include/socal/alt_gpio.h
82include_bsp_socal_HEADERS += hwlib/include/socal/alt_i2c.h
83include_bsp_socal_HEADERS += hwlib/include/socal/alt_l3.h
84include_bsp_socal_HEADERS += hwlib/include/socal/alt_rstmgr.h
85include_bsp_socal_HEADERS += hwlib/include/socal/alt_sdr.h
86include_bsp_socal_HEADERS += hwlib/include/socal/alt_sysmgr.h
87include_bsp_socal_HEADERS += hwlib/include/socal/alt_uart.h
88include_bsp_socal_HEADERS += hwlib/include/socal/hps.h
89include_bsp_socal_HEADERS += hwlib/include/socal/socal.h
90
91include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h
92
93
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_address_space.c
127libbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c
128libbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c
129libbsp_a_SOURCES += hwlib/src/hwmgr/alt_i2c.c
130libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c
131#The following Altera hwlib source files have been left out because so far
132#they are not required:
133#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c
134#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c
135#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c
136#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.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/bspclean.c
149libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
150libbsp_a_SOURCES += ../../shared/bsplibc.c
151libbsp_a_SOURCES += ../../shared/bsppost.c
152libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
153libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
154libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
155libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
156libbsp_a_SOURCES += ../../shared/sbrk.c
157libbsp_a_SOURCES += ../../shared/timerstub.c
158libbsp_a_SOURCES += ../../shared/src/stackalloc.c
159libbsp_a_SOURCES += ../shared/abort/simple_abort.c
160libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
161libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
162libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
163
164# Startup
165libbsp_a_SOURCES += startup/bspreset.c
166libbsp_a_SOURCES += startup/bspstart.c
167libbsp_a_SOURCES += startup/bspstarthooks.c
168libbsp_a_SOURCES += startup/nocache-heap.c
169libbsp_a_SOURCES += startup/mmu-config.c
170if HAS_SMP
171libbsp_a_SOURCES += startup/bspsmp.c
172endif
173
174# IRQ
175libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
176libbsp_a_SOURCES += ../../shared/src/irq-generic.c
177libbsp_a_SOURCES += ../../shared/src/irq-info.c
178libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
179libbsp_a_SOURCES += ../../shared/src/irq-server.c
180libbsp_a_SOURCES += ../../shared/src/irq-shell.c
181libbsp_a_SOURCES += ../shared/arm-gic-irq.c
182
183# Network
184libbsp_a_SOURCES += network/network.c
185
186# Console
187libbsp_a_SOURCES += ../../shared/console.c
188libbsp_a_SOURCES += ../../shared/console_control.c
189libbsp_a_SOURCES += ../../shared/console_read.c
190libbsp_a_SOURCES += ../../shared/console_select_simple.c
191libbsp_a_SOURCES += ../../shared/console_write.c
192libbsp_a_SOURCES += console/console-config.c
193
194# Clock
195libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
196libbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c
197
198# I2C
199libbsp_a_SOURCES += i2c/i2cdrv.c
200libbsp_a_SOURCES += i2c/i2cdrv-config.c
201include_bsp_HEADERS += include/i2cdrv.h
202
203# RTC
204libbsp_a_SOURCES += ../../shared/tod.c
205libbsp_a_SOURCES += rtc/rtc.c
206
207# Cache
208libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
209libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h
210libbsp_a_SOURCES += ../shared/arm-l2c-310/cache_.h
211libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/arm-l2c-310
212
213###############################################################################
214#                  Special Rules                                              #
215###############################################################################
216
217DISTCLEANFILES = include/bspopts.h
218
219include $(srcdir)/preinstall.am
220include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.