aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/make/stm32f107_goldbull.make
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/make/stm32f107_goldbull.make')
-rw-r--r--lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/make/stm32f107_goldbull.make195
1 files changed, 195 insertions, 0 deletions
diff --git a/lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/make/stm32f107_goldbull.make b/lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/make/stm32f107_goldbull.make
new file mode 100644
index 000000000..e8c71b0aa
--- /dev/null
+++ b/lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/make/stm32f107_goldbull.make
@@ -0,0 +1,195 @@
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# 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 = no
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-m3
90
91# Imported source files and paths.
92CHIBIOS := ../../..
93CONFDIR := ./cfg/stm32f107_goldbull
94BUILDDIR := ./build/stm32f107_goldbull
95DEPDIR := ./.dep/stm32f107_goldbull
96
97# Licensing files.
98include $(CHIBIOS)/os/license/license.mk
99# Startup files.
100include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
101# HAL-OSAL files (optional).
102include $(CHIBIOS)/os/hal/hal.mk
103include $(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk
104include $(CHIBIOS)/os/hal/boards/GOLDBULL_STM32_F107VC/board.mk
105include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
106# RTOS files (optional).
107include $(CHIBIOS)/os/rt/rt.mk
108include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
109# Auto-build files in ./source recursively.
110include $(CHIBIOS)/tools/mk/autobuild.mk
111# Other files (optional).
112include $(CHIBIOS)/test/lib/test.mk
113include $(CHIBIOS)/test/rt/rt_test.mk
114include $(CHIBIOS)/test/oslib/oslib_test.mk
115include $(CHIBIOS)/os/hal/lib/streams/streams.mk
116include $(CHIBIOS)/os/various/shell/shell.mk
117include $(CHIBIOS)/os/various/lwip_bindings/lwip.mk
118include $(CHIBIOS)/os/various/fatfs_bindings/fatfs.mk
119
120# Define linker script file here
121LDSCRIPT= $(STARTUPLD)/STM32F107xC.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 $(CHIBIOS)/os/various/evtimer.c \
128 $(CONFDIR)/portab.c \
129 main.c
130
131# C++ sources that can be compiled in ARM or THUMB mode depending on the global
132# setting.
133CPPSRC = $(ALLCPPSRC)
134
135# List ASM source files here.
136ASMSRC = $(ALLASMSRC)
137
138# List ASM with preprocessor source files here.
139ASMXSRC = $(ALLXASMSRC)
140
141# Inclusion directories.
142INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC) ./cfg
143
144# Define C warning options here.
145CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
146
147# Define C++ warning options here.
148CPPWARN = -Wall -Wextra -Wundef
149
150#
151# Project, target, sources and paths
152##############################################################################
153
154##############################################################################
155# Start of user section
156#
157
158# List all user C define here, like -D_DEBUG=1
159UDEFS =
160
161# Define ASM defines here
162UADEFS =
163
164# List all user directories here
165UINCDIR =
166
167# List the user directory to look for the libraries here
168ULIBDIR =
169
170# List all user libraries here
171ULIBS =
172
173#
174# End of user section
175##############################################################################
176
177##############################################################################
178# Common rules
179#
180
181RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
182include $(RULESPATH)/arm-none-eabi.mk
183include $(RULESPATH)/rules.mk
184
185#
186# Common rules
187##############################################################################
188
189##############################################################################
190# Custom rules
191#
192
193#
194# Custom rules
195##############################################################################