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