diff options
Diffstat (limited to 'lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_MSD/Makefile')
-rw-r--r-- | lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_MSD/Makefile | 194 |
1 files changed, 194 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_MSD/Makefile b/lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_MSD/Makefile new file mode 100644 index 000000000..0798ff071 --- /dev/null +++ b/lib/chibios-contrib/testhal/STM32/STM32H7xx/USB_MSD/Makefile | |||
@@ -0,0 +1,194 @@ | |||
1 | ############################################################################## | ||
2 | # Build global options | ||
3 | # NOTE: Can be overridden externally. | ||
4 | # | ||
5 | |||
6 | # Compiler options here. | ||
7 | ifeq ($(USE_OPT),) | ||
8 | USE_OPT = -Os -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 = no | ||
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 | # FPU-related options. | ||
78 | ifeq ($(USE_FPU_OPT),) | ||
79 | USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv5-d16 | ||
80 | endif | ||
81 | |||
82 | # | ||
83 | # Architecture or project specific options | ||
84 | ############################################################################## | ||
85 | |||
86 | ############################################################################## | ||
87 | # Project, sources and paths | ||
88 | # | ||
89 | |||
90 | # Define project name here | ||
91 | PROJECT = ch | ||
92 | |||
93 | # Target settings. | ||
94 | MCU = cortex-m7 | ||
95 | |||
96 | # Imported source files and paths | ||
97 | CHIBIOS = ../../../../../ChibiOS | ||
98 | CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib | ||
99 | # Licensing files. | ||
100 | include $(CHIBIOS)/os/license/license.mk | ||
101 | # Startup files. | ||
102 | include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32h7xx.mk | ||
103 | # HAL-OSAL files (optional). | ||
104 | include $(CHIBIOS_CONTRIB)/os/hal/hal.mk | ||
105 | include $(CHIBIOS_CONTRIB)/os/hal/ports/STM32/STM32H7xx/platform.mk | ||
106 | include $(CHIBIOS)/os/hal/boards/ST_NUCLEO144_H743ZI/board.mk | ||
107 | include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk | ||
108 | # RTOS files (optional). | ||
109 | include $(CHIBIOS)/os/rt/rt.mk | ||
110 | include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk | ||
111 | # Other files (optional). | ||
112 | include $(CHIBIOS)/test/lib/test.mk | ||
113 | include $(CHIBIOS)/test/rt/rt_test.mk | ||
114 | include $(CHIBIOS)/test/oslib/oslib_test.mk | ||
115 | include $(CHIBIOS)/os/hal/lib/streams/streams.mk | ||
116 | include $(CHIBIOS)/os/various/shell/shell.mk | ||
117 | |||
118 | # Define linker script file here | ||
119 | LDSCRIPT= $(STARTUPLD)/STM32H743xI.ld | ||
120 | |||
121 | # C sources that can be compiled in ARM or THUMB mode depending on the global | ||
122 | # setting. | ||
123 | CSRC = $(ALLCSRC) \ | ||
124 | $(TESTSRC) \ | ||
125 | $(CHIBIOS_CONTRIB)/os/various/ramdisk.c \ | ||
126 | $(CHIBIOS_CONTRIB)/os/various/lib_scsi.c \ | ||
127 | usbcfg.c \ | ||
128 | main.c | ||
129 | |||
130 | # C++ sources that can be compiled in ARM or THUMB mode depending on the global | ||
131 | # setting. | ||
132 | CPPSRC = $(ALLCPPSRC) | ||
133 | |||
134 | # List ASM source files here. | ||
135 | ASMSRC = $(ALLASMSRC) | ||
136 | |||
137 | # List ASM with preprocessor source files here. | ||
138 | ASMXSRC = $(ALLXASMSRC) | ||
139 | |||
140 | INCDIR = $(ALLINC) $(TESTINC) \ | ||
141 | $(CHIBIOS_CONTRIB)/os/various | ||
142 | |||
143 | # Define C warning options here. | ||
144 | CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes | ||
145 | |||
146 | # Define C++ warning options here. | ||
147 | CPPWARN = -Wall -Wextra -Wundef | ||
148 | |||
149 | # | ||
150 | # Project, target, sources and paths | ||
151 | ############################################################################## | ||
152 | |||
153 | ############################################################################## | ||
154 | # Start of user section | ||
155 | # | ||
156 | |||
157 | # List all user C define here, like -D_DEBUG=1 | ||
158 | UDEFS = | ||
159 | |||
160 | # Define ASM defines here | ||
161 | UADEFS = | ||
162 | |||
163 | # List all user directories here | ||
164 | UINCDIR = | ||
165 | |||
166 | # List the user directory to look for the libraries here | ||
167 | ULIBDIR = | ||
168 | |||
169 | # List all user libraries here | ||
170 | ULIBS = | ||
171 | |||
172 | # | ||
173 | # End of user section | ||
174 | ############################################################################## | ||
175 | |||
176 | ############################################################################## | ||
177 | # Common rules | ||
178 | # | ||
179 | |||
180 | RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk | ||
181 | include $(RULESPATH)/arm-none-eabi.mk | ||
182 | include $(RULESPATH)/rules.mk | ||
183 | |||
184 | # | ||
185 | # Common rules | ||
186 | ############################################################################## | ||
187 | |||
188 | ############################################################################## | ||
189 | # Custom rules | ||
190 | # | ||
191 | |||
192 | # | ||
193 | # Custom rules | ||
194 | ############################################################################## | ||