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