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

5
Last change on this file since 90013f59 was 90013f59, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 13, 2018 at 6:57:30 AM

bsps: Move tod.c to bsps and rename

This patch is a part of the BSP source reorganization.

Update #3285.

  • 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
49project_lib_LIBRARIES = librtemsbsp.a
50
51librtemsbsp_a_SOURCES =
52librtemsbsp_a_CPPFLAGS = $(AM_CPPFLAGS)
53
54# for the Altera hwlib
55librtemsbsp_a_CPPFLAGS += -I${srcdir}/hwlib/include
56librtemsbsp_a_CPPFLAGS += -std=gnu99
57CFLAGS += -Wno-missing-prototypes
58
59# hwlib from Altera
60librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c
61librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_address_space.c
62librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c
63librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c
64librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c
65librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c
66librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_i2c.c
67librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_qspi.c
68librtemsbsp_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#librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c
72#librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_fpga_manager.c
73#librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_globaltmr.c
74#librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_system_manager.c
75#librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_timers.c
76#librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_watchdog.c
77# The following Altera hwlib source files would be problematic with RTEMS:
78#librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_interrupt.c
79
80
81# Shared
82librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
83librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
84librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c
85librtemsbsp_a_SOURCES += ../../shared/sbrk.c
86librtemsbsp_a_SOURCES += ../../shared/timerstub.c
87librtemsbsp_a_SOURCES += ../../shared/src/bsp-fdt.c
88librtemsbsp_a_SOURCES += ../../shared/src/stackalloc.c
89librtemsbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
90librtemsbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
91librtemsbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
92
93# Startup
94librtemsbsp_a_SOURCES += startup/bspclean.c
95librtemsbsp_a_SOURCES += startup/bspgetworkarea.c
96librtemsbsp_a_SOURCES += startup/bspreset.c
97librtemsbsp_a_SOURCES += startup/bspstart.c
98librtemsbsp_a_SOURCES += startup/bspstarthooks.c
99librtemsbsp_a_SOURCES += startup/mmu-config.c
100if HAS_SMP
101librtemsbsp_a_SOURCES += ../shared/arm-a9mpcore-smp.c
102librtemsbsp_a_SOURCES += startup/bspsmp.c
103endif
104
105# IRQ
106librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
107librtemsbsp_a_SOURCES += ../shared/arm-gic-irq.c
108
109# Console
110librtemsbsp_a_SOURCES += ../../shared/console-termios-init.c
111librtemsbsp_a_SOURCES += ../../shared/console-termios.c
112librtemsbsp_a_SOURCES += console/console-config.c
113
114# Clock
115librtemsbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c
116
117# I2C
118librtemsbsp_a_SOURCES += i2c/i2cdrv.c
119librtemsbsp_a_SOURCES += i2c/i2cdrv-config.c
120# RTC
121librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/rtc/rtc-support.c
122librtemsbsp_a_SOURCES += rtc/rtc.c
123
124# Cache
125librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cache/cache-l2c-310.c
126
127###############################################################################
128#                  Special Rules                                              #
129###############################################################################
130
131
132include $(top_srcdir)/../../../../automake/local.am
133include $(srcdir)/../../../../../../bsps/shared/irq-sources.am
134include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
135include $(srcdir)/../../../../../../bsps/arm/altera-cyclone-v/headers.am
Note: See TracBrowser for help on using the repository browser.