aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/testhal/STM32/STM32F0xx/COMP/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/testhal/STM32/STM32F0xx/COMP/Makefile')
-rw-r--r--lib/chibios-contrib/testhal/STM32/STM32F0xx/COMP/Makefile206
1 files changed, 206 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/STM32/STM32F0xx/COMP/Makefile b/lib/chibios-contrib/testhal/STM32/STM32F0xx/COMP/Makefile
new file mode 100644
index 000000000..3fc247bd4
--- /dev/null
+++ b/lib/chibios-contrib/testhal/STM32/STM32F0xx/COMP/Makefile
@@ -0,0 +1,206 @@
1##############################################################################
2# Build global options
3# NOTE: Can be overridden externally.
4#
5
6# Compiler options here.
7ifeq ($(USE_OPT),)
8 USE_OPT = -O2 -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# If enabled, this option allows to compile the application in THUMB mode.
37ifeq ($(USE_THUMB),)
38 USE_THUMB = yes
39endif
40
41# Enable this if you want to see the full log while compiling.
42ifeq ($(USE_VERBOSE_COMPILE),)
43 USE_VERBOSE_COMPILE = no
44endif
45
46# If enabled, this option makes the build process faster by not compiling
47# modules not used in the current configuration.
48ifeq ($(USE_SMART_BUILD),)
49 USE_SMART_BUILD = yes
50endif
51
52#
53# Build global options
54##############################################################################
55
56##############################################################################
57# Architecture or project specific options
58#
59
60# Stack size to be allocated to the Cortex-M process stack. This stack is
61# the stack used by the main() thread.
62ifeq ($(USE_PROCESS_STACKSIZE),)
63 USE_PROCESS_STACKSIZE = 0x200
64endif
65
66# Stack size to the allocated to the Cortex-M main/exceptions stack. This
67# stack is used for processing interrupts and exceptions.
68ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
69 USE_EXCEPTIONS_STACKSIZE = 0x400
70endif
71
72#
73# Architecture or project specific options
74##############################################################################
75
76##############################################################################
77# Project, sources and paths
78#
79
80# Define project name here
81PROJECT = ch
82
83# Imported source files and paths
84CHIBIOS = ../../../../../ChibiOS
85CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib
86
87# Licensing files.
88include $(CHIBIOS)/os/license/license.mk
89# Startup files.
90include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f0xx.mk
91# HAL-OSAL files (optional).
92include $(CHIBIOS_CONTRIB)/os/hal/hal.mk
93include $(CHIBIOS_CONTRIB)/os/hal/ports/STM32/STM32F0xx/platform.mk
94include $(CHIBIOS)/os/hal/boards/ST_STM32F072B_DISCOVERY/board.mk
95include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
96# RTOS files (optional).
97include $(CHIBIOS)/os/rt/rt.mk
98include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
99
100# Define linker script file here
101LDSCRIPT= $(STARTUPLD)/STM32F072xB.ld
102
103# C sources that can be compiled in ARM or THUMB mode depending on the global
104# setting.
105CSRC = $(ALLCSRC) \
106 $(TESTSRC) \
107 main.c
108
109# C++ sources that can be compiled in ARM or THUMB mode depending on the global
110# setting.
111CPPSRC = $(ALLCPPSRC)
112
113# C sources to be compiled in ARM mode regardless of the global setting.
114# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
115# option that results in lower performance and larger code size.
116ACSRC =
117
118# C++ sources to be compiled in ARM mode regardless of the global setting.
119# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
120# option that results in lower performance and larger code size.
121ACPPSRC =
122
123# C sources to be compiled in THUMB mode regardless of the global setting.
124# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
125# option that results in lower performance and larger code size.
126TCSRC =
127
128# C sources to be compiled in THUMB mode regardless of the global setting.
129# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
130# option that results in lower performance and larger code size.
131TCPPSRC =
132
133# List ASM source files here
134ASMSRC = $(ALLASMSRC)
135ASMXSRC = $(ALLXASMSRC)
136
137INCDIR = $(ALLINC) $(TESTINC) $(CHIBIOS_CONTRIB)/os/various/
138
139#
140# Project, sources and paths
141##############################################################################
142
143##############################################################################
144# Compiler settings
145#
146
147MCU = cortex-m0
148
149#TRGT = arm-elf-
150TRGT = arm-none-eabi-
151CC = $(TRGT)gcc
152CPPC = $(TRGT)g++
153# Enable loading with g++ only if you need C++ runtime support.
154# NOTE: You can use C++ even without C++ support if you are careful. C++
155# runtime support makes code size explode.
156LD = $(TRGT)gcc
157#LD = $(TRGT)g++
158CP = $(TRGT)objcopy
159AS = $(TRGT)gcc -x assembler-with-cpp
160AR = $(TRGT)ar
161OD = $(TRGT)objdump
162SZ = $(TRGT)size
163HEX = $(CP) -O ihex
164BIN = $(CP) -O binary
165
166# ARM-specific options here
167AOPT =
168
169# THUMB-specific options here
170TOPT = -mthumb -DTHUMB
171
172# Define C warning options here
173CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
174
175# Define C++ warning options here
176CPPWARN = -Wall -Wextra -Wundef
177
178#
179# Compiler settings
180##############################################################################
181
182##############################################################################
183# Start of user section
184#
185
186# List all user C define here, like -D_DEBUG=1
187UDEFS =
188
189# Define ASM defines here
190UADEFS =
191
192# List all user directories here
193UINCDIR =
194
195# List the user directory to look for the libraries here
196ULIBDIR =
197
198# List all user libraries here
199ULIBS =
200
201#
202# End of user defines
203##############################################################################
204
205RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
206include $(RULESPATH)/rules.mk