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

Last change on this file since 2d0bc83 was 2d0bc83, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 30, 2018 at 6:42:21 PM

build: Remove EXTRA_DIST

A "make dist" is not supported. So, it makes no sense to have pure "make
dist" related stuff in the Makefile.am.

  • Property mode set to 100644
File size: 5.3 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
13dist_project_lib_DATA = startup/bsp_specs
14
15###############################################################################
16#                  Header                                                     #
17###############################################################################
18
19# Altera hwlib
20#The following Altera hwlib header files have been left out because so far
21#they are not required:
22#include_bsp_HEADERS += hwlib/include/alt_bridge_manager.h
23#include_bsp_HEADERS += hwlib/include/alt_fpga_manager.h
24#include_bsp_HEADERS += hwlib/include/alt_globaltmr.h
25#include_bsp_HEADERS += hwlib/include/alt_system_manager.h
26#include_bsp_HEADERS += hwlib/include/alt_timers.h
27#include_bsp_HEADERS += hwlib/include/alt_watchdog.h
28#The following Altera hwlib headers would be problematic with RTEMS:
29#include_bsp_HEADERS += hwlib/include/alt_interrupt.h
30
31# Some of the headers from hwlib need the files from socal. Install them.
32###############################################################################
33#                  Data                                                       #
34###############################################################################
35
36start.$(OBJEXT): ../shared/start/start.S
37        $(CPPASCOMPILE) -o $@ -c $<
38project_lib_DATA = start.$(OBJEXT)
39
40project_lib_DATA += linkcmds
41dist_project_lib_DATA += startup/linkcmds.altcycv
42dist_project_lib_DATA += startup/linkcmds.altcycv_devkit
43dist_project_lib_DATA += startup/linkcmds.altcycv_devkit_smp
44
45###############################################################################
46#                  LibBSP                                                     #
47###############################################################################
48
49noinst_LIBRARIES = libbsp.a
50
51libbsp_a_SOURCES =
52libbsp_a_CPPFLAGS = $(AM_CPPFLAGS)
53
54# for the Altera hwlib
55libbsp_a_CPPFLAGS += -I${srcdir}/hwlib/include
56libbsp_a_CPPFLAGS += -std=gnu99
57CFLAGS += -Wno-missing-prototypes
58
59# hwlib from Altera
60libbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c
61libbsp_a_SOURCES += hwlib/src/hwmgr/alt_address_space.c
62libbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c
63libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c
64libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c
65libbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c
66libbsp_a_SOURCES += hwlib/src/hwmgr/alt_i2c.c
67libbsp_a_SOURCES += hwlib/src/hwmgr/alt_qspi.c
68libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c
69#The following Altera hwlib source files have been left out because so far
70#they are not required:
71#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c
72#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_fpga_manager.c
73#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_globaltmr.c
74#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_system_manager.c
75#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_timers.c
76#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_watchdog.c
77# The following Altera hwlib source files would be problematic with RTEMS:
78#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_interrupt.c
79
80
81# Shared
82libbsp_a_SOURCES += ../../shared/bootcard.c
83libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
84libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
85libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
86libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
87libbsp_a_SOURCES += ../../shared/sbrk.c
88libbsp_a_SOURCES += ../../shared/timerstub.c
89libbsp_a_SOURCES += ../../shared/src/bsp-fdt.c
90libbsp_a_SOURCES += ../../shared/src/stackalloc.c
91libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
92libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
93libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
94
95# Startup
96libbsp_a_SOURCES += startup/bspclean.c
97libbsp_a_SOURCES += startup/bspgetworkarea.c
98libbsp_a_SOURCES += startup/bspreset.c
99libbsp_a_SOURCES += startup/bspstart.c
100libbsp_a_SOURCES += startup/bspstarthooks.c
101libbsp_a_SOURCES += startup/mmu-config.c
102if HAS_SMP
103libbsp_a_SOURCES += ../shared/arm-a9mpcore-smp.c
104libbsp_a_SOURCES += startup/bspsmp.c
105endif
106
107# IRQ
108libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
109libbsp_a_SOURCES += ../../shared/src/irq-generic.c
110libbsp_a_SOURCES += ../../shared/src/irq-info.c
111libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
112libbsp_a_SOURCES += ../../shared/src/irq-server.c
113libbsp_a_SOURCES += ../../shared/src/irq-shell.c
114libbsp_a_SOURCES += ../shared/arm-gic-irq.c
115
116# Console
117libbsp_a_SOURCES += ../../shared/console-termios-init.c
118libbsp_a_SOURCES += ../../shared/console-termios.c
119libbsp_a_SOURCES += console/console-config.c
120
121# Clock
122libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
123libbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c
124
125# I2C
126libbsp_a_SOURCES += i2c/i2cdrv.c
127libbsp_a_SOURCES += i2c/i2cdrv-config.c
128# RTC
129libbsp_a_SOURCES += ../../shared/tod.c
130libbsp_a_SOURCES += rtc/rtc.c
131
132# Cache
133libbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cache/cache-l2c-310.c
134
135###############################################################################
136#                  Special Rules                                              #
137###############################################################################
138
139DISTCLEANFILES = include/bspopts.h
140
141include $(top_srcdir)/../../../../automake/local.am
142include $(srcdir)/../../../../../../bsps/arm/altera-cyclone-v/headers.am
Note: See TracBrowser for help on using the repository browser.