source: rtems/c/src/lib/libbsp/arm/stm32f4/Makefile.am @ 642ef00

Last change on this file since 642ef00 was 642ef00, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 27, 2017 at 5:23:29 AM

bsps: Provide <tm27.h> in each BSP

Since the <tm27.h> is highly BSP-dependent and used only by the tm27
test program we must provide this header file for each BSP. Without the
preinstall build target each header file must have a unique source
header file.

Update #3254.

  • Property mode set to 100644
File size: 5.0 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2
3include $(top_srcdir)/../../../../automake/compile.am
4
5include_bspdir = $(includedir)/bsp
6
7###############################################################################
8#                  Data                                                       #
9###############################################################################
10
11dist_project_lib_DATA = bsp_specs
12
13noinst_LIBRARIES = libbspstart.a
14
15libbspstart_a_SOURCES = ../shared/start/start.S
16
17project_lib_DATA =
18project_lib_DATA += start.$(OBJEXT)
19project_lib_DATA += startup/linkcmds
20
21EXTRA_DIST = startup/linkcmds.stm32f4
22EXTRA_DIST += startup/linkcmds.stm32f105rc
23
24###############################################################################
25#                  Header                                                     #
26###############################################################################
27
28include_HEADERS =
29include_HEADERS += include/tm27.h
30include_HEADERS += include/bsp.h
31
32nodist_include_HEADERS =
33nodist_include_HEADERS += include/bspopts.h
34
35nodist_include_bsp_HEADERS =
36nodist_include_bsp_HEADERS += ../../shared/include/bootcard.h
37
38include_bsp_HEADERS =
39include_bsp_HEADERS += ../../shared/include/utility.h
40include_bsp_HEADERS += ../../shared/include/irq-generic.h
41include_bsp_HEADERS += ../../shared/include/irq-info.h
42include_bsp_HEADERS += ../../shared/include/stackalloc.h
43include_bsp_HEADERS += ../shared/include/start.h
44include_bsp_HEADERS += ../shared/armv7m/include/armv7m-irq.h
45include_bsp_HEADERS += include/irq.h
46include_bsp_HEADERS += include/usart.h
47include_bsp_HEADERS += include/stm32f4.h
48include_bsp_HEADERS += include/stm32f10xxx_gpio.h
49include_bsp_HEADERS += include/stm32f10xxx_rcc.h
50include_bsp_HEADERS += include/stm32f10xxx_exti.h
51include_bsp_HEADERS += include/stm32f4xxxx_adc.h
52include_bsp_HEADERS += include/stm32f4xxxx_exti.h
53include_bsp_HEADERS += include/stm32f4xxxx_gpio.h
54include_bsp_HEADERS += include/stm32f4xxxx_rcc.h
55include_bsp_HEADERS += include/stm32f4xxxx_pwr.h
56include_bsp_HEADERS += include/stm32f4xxxx_syscfg.h
57include_bsp_HEADERS += include/stm32f4xxxx_tim.h
58include_bsp_HEADERS += include/stm32f4xxxx_flash.h
59include_bsp_HEADERS += include/stm32f4xxxx_otgfs.h
60include_bsp_HEADERS += include/stm32_i2c.h
61include_bsp_HEADERS += include/i2c.h
62include_bsp_HEADERS += include/stm32_usart.h
63include_bsp_HEADERS += include/io.h
64include_bsp_HEADERS += include/rcc.h
65
66###############################################################################
67#                  LibBSP                                                     #
68###############################################################################
69
70noinst_LIBRARIES += libbsp.a
71
72libbsp_a_SOURCES =
73libbsp_a_CPPFLAGS =
74libbsp_a_LIBADD =
75
76# Shared
77libbsp_a_SOURCES += ../../shared/bootcard.c
78libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
79libbsp_a_SOURCES += ../../shared/bspclean.c
80libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
81libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
82libbsp_a_SOURCES += ../../shared/cpucounterread.c
83libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
84libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
85libbsp_a_SOURCES += ../../shared/sbrk.c
86libbsp_a_SOURCES += ../../shared/src/stackalloc.c
87
88# Startup
89libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
90libbsp_a_SOURCES += startup/bspstart.c
91libbsp_a_SOURCES += startup/bspstarthook.c
92libbsp_a_SOURCES += startup/bspreset.c
93libbsp_a_SOURCES += startup/io.c
94libbsp_a_SOURCES += startup/rcc.c
95libbsp_a_SOURCES += startup/start-config-io.c
96
97# IRQ
98libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
99libbsp_a_SOURCES += ../../shared/src/irq-generic.c
100libbsp_a_SOURCES += ../../shared/src/irq-info.c
101libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
102libbsp_a_SOURCES += ../../shared/src/irq-server.c
103libbsp_a_SOURCES += ../../shared/src/irq-shell.c
104libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c
105libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
106
107# Console
108libbsp_a_SOURCES += ../../shared/console.c
109libbsp_a_SOURCES += ../../shared/console_control.c
110libbsp_a_SOURCES += ../../shared/console_read.c
111libbsp_a_SOURCES += ../../shared/console_select.c
112libbsp_a_SOURCES += ../../shared/console_write.c
113libbsp_a_SOURCES += console/console-config.c
114libbsp_a_SOURCES += console/usart.c
115
116# I2C
117libbsp_a_SOURCES += i2c/i2c.c
118libbsp_a_SOURCES += i2c/i2c-config.c
119
120# Clock
121libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
122libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c
123
124# Timer
125libbsp_a_SOURCES += ../../shared/timerstub.c
126
127# Cache
128libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
129libbsp_a_SOURCES += ../../../libcpu/arm/shared/cache/cache_.h
130libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
131
132###############################################################################
133#                  Special Rules                                              #
134###############################################################################
135
136DISTCLEANFILES = include/bspopts.h
137
138include $(srcdir)/preinstall.am
139include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.