source: rtems/c/src/lib/libbsp/arm/atsam/Makefile.am @ 54aabb7

5
Last change on this file since 54aabb7 was 54aabb7, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 22, 2018 at 1:11:43 PM

bsp/atsam: Move libraries to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 9.8 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2
3include $(top_srcdir)/../../../../automake/compile.am
4include $(top_srcdir)/../../bsp.am
5
6###############################################################################
7#                  Data                                                       #
8###############################################################################
9
10dist_project_lib_DATA = ../../../../../../bsps/arm/atsam/start/bsp_specs
11
12start.$(OBJEXT): ../../../../../../bsps/arm/shared/start/start.S
13        $(CPPASCOMPILE) -o $@ -c $<
14project_lib_DATA = start.$(OBJEXT)
15
16project_lib_DATA += linkcmds
17project_lib_DATA += linkcmds.memory
18dist_project_lib_DATA += ../../../../../../bsps/arm/atsam/start/linkcmds.intsram
19dist_project_lib_DATA += ../../../../../../bsps/arm/atsam/start/linkcmds.sdram
20dist_project_lib_DATA += ../../../../../../bsps/arm/atsam/start/linkcmds.qspiflash
21
22###############################################################################
23#                  Header                                                     #
24###############################################################################
25
26###############################################################################
27#                  LibBSP                                                     #
28###############################################################################
29
30project_lib_LIBRARIES = librtemsbsp.a
31
32librtemsbsp_a_SOURCES =
33librtemsbsp_a_CPPFLAGS = $(AM_CPPFLAGS)
34librtemsbsp_a_LIBADD =
35
36# Shared
37librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
38librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
39librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c
40librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
41librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
42
43# libchip
44librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/acc.c
45librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/aes.c
46librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/afec.c
47librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/afe_dma.c
48librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/dac_dma.c
49librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/efc.c
50librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/exceptions.c
51librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/flashd.c
52librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/gmac.c
53librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/gmacd.c
54librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/hsmci.c
55librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/icm.c
56librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/isi.c
57librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/mcan.c
58librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/mediaLB.c
59librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/mpu.c
60librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/pio.c
61librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/pio_capture.c
62librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/pio_it.c
63librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/pmc.c
64librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/pwmc.c
65librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/qspi.c
66librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/qspi_dma.c
67librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/rstc.c
68librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/rtc.c
69librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/rtt.c
70librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/sdramc.c
71librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/spi.c
72librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/spi_dma.c
73librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/ssc.c
74librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/supc.c
75librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/tc.c
76librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/trng.c
77librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/twi.c
78librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/twid.c
79librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/uart.c
80librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/uart_dma.c
81librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/usart.c
82librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/usart_dma.c
83librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/wdt.c
84librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/xdmad.c
85librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libchip/source/xdma_hardware_interface.c
86
87# libboard
88librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libboard/resources_v71/system_samv71.c
89librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libboard/source/board_lowlevel.c
90librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libboard/source/board_memories.c
91librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/contrib/libraries/libboard/source/dbg_console.c
92
93# Startup
94librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/bsp-start-memcpy.S
95librtemsbsp_a_SOURCES += ../shared/armv7m/startup/bspreset.c
96librtemsbsp_a_SOURCES += ../shared/armv7m/startup/armv7m-cpucounter.c
97librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/bspstart.c
98librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/bspstarthooks.c
99librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/getentropy-trng.c
100librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/pin-config.c
101librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/pmc-config.c
102librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/power-clock.c
103librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/power-rtc.c
104librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/power.c
105librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/restart.c
106librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/sdram-config.c
107
108# IRQ
109librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
110librtemsbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c
111librtemsbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
112
113# Console
114librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios.c
115librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/console/console.c
116librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/console/debug-console.c
117
118# Clock
119librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/clock/clock-armv7m.c
120librtemsbsp_a_SOURCES +=../../../../../../bsps/arm/atsam/clock/systick-freq.c
121
122# Timer
123librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/btimer/btimer-stub.c
124
125# Cache
126librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cache/cache-v7m.c
127
128# Network
129if HAS_NETWORKING
130librtemsbsp_a_SOURCES += network/if_atsam.c
131endif
132
133# I2C
134librtemsbsp_a_SOURCES += i2c/atsam_i2c_bus.c
135librtemsbsp_a_SOURCES += i2c/atsam_i2c_init.c
136
137# SPI
138librtemsbsp_a_SOURCES += spi/atsam_spi_bus.c
139librtemsbsp_a_SOURCES += spi/atsam_spi_init.c
140librtemsbsp_a_SOURCES += spi/sc16is752.c
141
142# RTC
143librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/rtc/rtc-support.c
144librtemsbsp_a_SOURCES += rtc/rtc-config.c
145
146# Helper functions
147librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/iocopy.c
148
149# Includes
150librtemsbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/shared/CMSIS/Include
151librtemsbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/atsam/contrib/libraries/libboard
152librtemsbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/atsam/contrib/libraries/libboard/include
153librtemsbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/atsam/contrib/libraries/libchip
154librtemsbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/atsam/contrib/libraries/libchip/include
155
156# hack to get the BSP to build
157librtemsbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/atsam/include/libchip
158librtemsbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/atsam/include/libchip/include
159
160###############################################################################
161#                  Special Rules                                              #
162###############################################################################
163
164
165include $(top_srcdir)/../../../../automake/local.am
166include $(srcdir)/../../../../../../bsps/shared/irq-sources.am
167include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
168include $(srcdir)/../../../../../../bsps/arm/atsam/headers.am
Note: See TracBrowser for help on using the repository browser.