File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ compiler.c.elf.cmd=arm-none-eabi-gcc
30
30
compiler.objcopy.cmd=arm-none-eabi-objcopy
31
31
compiler.elf2hex.cmd=arm-none-eabi-objcopy
32
32
33
- compiler.extra_flags=-mcpu={build.mcu} -DF_CPU={build.f_cpu} -mthumb
33
+ compiler.extra_flags=-mcpu={build.mcu} -DF_CPU={build.f_cpu} -mthumb @{build.path}/build.opt
34
34
35
35
compiler.S.flags={compiler.extra_flags} -c -x assembler-with-cpp {compiler.stm.extra_include}
36
36
@@ -78,6 +78,9 @@ build.enable_usb=
78
78
build.flags.optimize=
79
79
build.flags.ldspecs=
80
80
81
+ ## Pre and post build hooks
82
+ recipe.hooks.prebuild.1.pattern={tools.build_opt.path}/{tools.build_opt.cmd} {build.project_name} {build.source.path} {build.path}
83
+
81
84
# compile patterns
82
85
# ---------------------
83
86
@@ -109,6 +112,18 @@ recipe.size.regex=^(?:\.text|\.data|\.rodata)\s+([0-9]+).*
109
112
recipe.size.regex.data=^(?:\.data|\.bss|\._user_heap_stack)\s+([0-9]+).*
110
113
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
111
114
115
+ # Recipe tools
116
+ # -------------------
117
+
118
+ # Copy build_opt file
119
+ tools.build_opt.cmd=build_opt
120
+ tools.build_opt.cmd.windows=build_opt.bat
121
+ tools.build_opt.cmd.macosx=build_optMacOsX
122
+ tools.build_opt.path={runtime.hardware.path}/tools/win
123
+ tools.build_opt.path.macosx={runtime.hardware.path}/tools/macosx
124
+ tools.build_opt.path.linux={runtime.hardware.path}/tools/linux
125
+ tools.build_opt.path.linux64={runtime.hardware.path}/tools/linux
126
+
112
127
113
128
# Uploader tool
114
129
# -------------------
You can’t perform that action at this time.
0 commit comments