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

Last change on this file since 4cf93658 was 4cf93658, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 27, 2018 at 1:37:51 PM

bsps: Rework cache manager implementation

The previous cache manager support used a single souce file
(cache_manager.c) which included an implementation header (cache_.h).
This required the use of specialized include paths to find the right
header file. Change this to include a generic implementation header
(cacheimpl.h) in specialized source files.

Use the following directories and files:

  • bsps/shared/cache
  • bsps/@RTEMS_CPU@/shared/cache
  • bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY/start/cache.c

Update #3285.

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