aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/demos/STM32/RT-STM32F407-DISCOVERY-RTT+SystemView/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/demos/STM32/RT-STM32F407-DISCOVERY-RTT+SystemView/Makefile')
-rw-r--r--lib/chibios-contrib/demos/STM32/RT-STM32F407-DISCOVERY-RTT+SystemView/Makefile193
1 files changed, 193 insertions, 0 deletions
diff --git a/lib/chibios-contrib/demos/STM32/RT-STM32F407-DISCOVERY-RTT+SystemView/Makefile b/lib/chibios-contrib/demos/STM32/RT-STM32F407-DISCOVERY-RTT+SystemView/Makefile
new file mode 100644
index 000000000..e3ecd0b97
--- /dev/null
+++ b/lib/chibios-contrib/demos/STM32/RT-STM32F407-DISCOVERY-RTT+SystemView/Makefile
@@ -0,0 +1,193 @@
1##############################################################################
2# Build global options
3# NOTE: Can be overridden externally.
4#
5
6# Compiler options here.
7ifeq ($(USE_OPT),)
8 USE_OPT = -Og -ggdb -fomit-frame-pointer -falign-functions=16
9endif
10
11# C specific options here (added to USE_OPT).
12ifeq ($(USE_COPT),)
13 USE_COPT =
14endif
15
16# C++ specific options here (added to USE_OPT).
17ifeq ($(USE_CPPOPT),)
18 USE_CPPOPT = -fno-rtti
19endif
20
21# Enable this if you want the linker to remove unused code and data.
22ifeq ($(USE_LINK_GC),)
23 USE_LINK_GC = yes
24endif
25
26# Linker extra options here.
27ifeq ($(USE_LDOPT),)
28 USE_LDOPT =
29endif
30
31# Enable this if you want link time optimizations (LTO).
32ifeq ($(USE_LTO),)
33 USE_LTO = yes
34endif
35
36# Enable this if you want to see the full log while compiling.
37ifeq ($(USE_VERBOSE_COMPILE),)
38 USE_VERBOSE_COMPILE = no
39endif
40
41# If enabled, this option makes the build process faster by not compiling
42# modules not used in the current configuration.
43ifeq ($(USE_SMART_BUILD),)
44 USE_SMART_BUILD = yes
45endif
46
47#
48# Build global options
49##############################################################################
50
51##############################################################################
52# Architecture or project specific options
53#
54
55# Stack size to be allocated to the Cortex-M process stack. This stack is
56# the stack used by the main() thread.
57ifeq ($(USE_PROCESS_STACKSIZE),)
58 USE_PROCESS_STACKSIZE = 0x400
59endif
60
61# Stack size to the allocated to the Cortex-M main/exceptions stack. This
62# stack is used for processing interrupts and exceptions.
63ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
64 USE_EXCEPTIONS_STACKSIZE = 0x400
65endif
66
67# Enables the use of FPU (no, softfp, hard).
68ifeq ($(USE_FPU),)
69 USE_FPU = hard
70endif
71
72# FPU-related options.
73ifeq ($(USE_FPU_OPT),)
74 USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv4-sp-d16
75endif
76
77#
78# Architecture or project specific options
79##############################################################################
80
81##############################################################################
82# Project, target, sources and paths
83#
84
85# Define project name here
86PROJECT = ch
87
88# Target settings.
89MCU = cortex-m4
90
91# Imported source files and paths.
92CHIBIOS := ../../../../ChibiOS
93CHIBIOS_CONTRIB := ../../../
94
95CONFDIR := ./cfg
96BUILDDIR := ./build
97DEPDIR := ./.dep
98
99# Licensing files.
100include $(CHIBIOS)/os/license/license.mk
101# Startup files.
102include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
103# HAL-OSAL files (optional).
104include $(CHIBIOS)/os/hal/hal.mk
105include $(CHIBIOS)/os/hal/ports/STM32/STM32F4xx/platform.mk
106include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
107include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
108# RTOS files (optional).
109include $(CHIBIOS)/os/rt/rt.mk
110include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
111# Auto-build files in ./source recursively.
112include $(CHIBIOS)/tools/mk/autobuild.mk
113# Other files (optional).
114include $(CHIBIOS)/test/lib/test.mk
115include $(CHIBIOS)/test/rt/rt_test.mk
116include $(CHIBIOS)/test/oslib/oslib_test.mk
117include $(CHIBIOS_CONTRIB)/os/various/segger_bindings/segger_rtt.mk
118include $(CHIBIOS_CONTRIB)/os/various/segger_bindings/segger_systemview.mk
119
120# Define linker script file here
121LDSCRIPT= $(STARTUPLD)/STM32F407xG.ld
122
123# C sources that can be compiled in ARM or THUMB mode depending on the global
124# setting.
125CSRC = $(ALLCSRC) \
126 $(TESTSRC) \
127 main.c
128
129# C++ sources that can be compiled in ARM or THUMB mode depending on the global
130# setting.
131CPPSRC = $(ALLCPPSRC)
132
133# List ASM source files here.
134ASMSRC = $(ALLASMSRC)
135
136# List ASM with preprocessor source files here.
137ASMXSRC = $(ALLXASMSRC)
138
139# Inclusion directories.
140INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
141
142# Define C warning options here.
143CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
144
145# Define C++ warning options here.
146CPPWARN = -Wall -Wextra -Wundef
147
148#
149# Project, target, sources and paths
150##############################################################################
151
152##############################################################################
153# Start of user section
154#
155
156# List all user C define here, like -D_DEBUG=1
157UDEFS =
158
159# Define ASM defines here
160UADEFS =
161
162# List all user directories here
163UINCDIR =
164
165# List the user directory to look for the libraries here
166ULIBDIR =
167
168# List all user libraries here
169ULIBS =
170
171#
172# End of user section
173##############################################################################
174
175##############################################################################
176# Common rules
177#
178
179RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
180include $(RULESPATH)/arm-none-eabi.mk
181include $(RULESPATH)/rules.mk
182
183#
184# Common rules
185##############################################################################
186
187##############################################################################
188# Custom rules
189#
190
191#
192# Custom rules
193##############################################################################