File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
Original file line number Diff line number Diff line change @@ -136,13 +136,13 @@ recipe.hooks.prebuild.5.pattern.windows=cmd /c if exist "{build.source.path}\bui
136
136
recipe.hooks.prebuild.6.pattern.windows=cmd /c if not exist "{build.path}\build_opt.h" type nul > "{build.path}\build_opt.h"
137
137
138
138
## Compile c files
139
- recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.cpreprocessor.flags} {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" {compiler.c.extra_flags} {build.extra_flags} "@{build.opt.path}" {includes} "{source_file}" -o "{object_file}"
139
+ recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.cpreprocessor.flags} {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" -DARDUINO_PARTITION_{build.partitions} {compiler.c.extra_flags} {build.extra_flags} "@{build.opt.path}" {includes} "{source_file}" -o "{object_file}"
140
140
141
141
## Compile c++ files
142
- recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpreprocessor.flags} {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" {compiler.cpp.extra_flags} {build.extra_flags} "@{build.opt.path}" {includes} "{source_file}" -o "{object_file}"
142
+ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpreprocessor.flags} {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" -DARDUINO_PARTITION_{build.partitions} {compiler.cpp.extra_flags} {build.extra_flags} "@{build.opt.path}" {includes} "{source_file}" -o "{object_file}"
143
143
144
144
## Compile S files
145
- recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.cpreprocessor.flags} {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" {compiler.S.extra_flags} {build.extra_flags} "@{build.opt.path}" {includes} "{source_file}" -o "{object_file}"
145
+ recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.cpreprocessor.flags} {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" -DARDUINO_PARTITION_{build.partitions} {compiler.S.extra_flags} {build.extra_flags} "@{build.opt.path}" {includes} "{source_file}" -o "{object_file}"
146
146
147
147
## Create archives
148
148
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
Original file line number Diff line number Diff line change 310
310
("F_CPU" , "$BOARD_F_CPU" ),
311
311
("ARDUINO" , 10812 ),
312
312
("ARDUINO_VARIANT" , '\\ "%s\\ "' % env .BoardConfig ().get ("build.variant" ).replace ('"' , "" )),
313
- ("ARDUINO_BOARD" , '\\ "%s\\ "' % env .BoardConfig ().get ("name" ).replace ('"' , "" ))
313
+ ("ARDUINO_BOARD" , '\\ "%s\\ "' % env .BoardConfig ().get ("name" ).replace ('"' , "" )),
314
+ "ARDUINO_PARTITION_%s" % env .BoardConfig ().get ("build.partitions" , "default.csv" ).replace (".csv" , "" )
314
315
],
315
316
316
317
LIBSOURCE_DIRS = [
Original file line number Diff line number Diff line change 300
300
("F_CPU" , "$BOARD_F_CPU" ),
301
301
("ARDUINO" , 10812 ),
302
302
("ARDUINO_VARIANT" , '\\ "%s\\ "' % env .BoardConfig ().get ("build.variant" ).replace ('"' , "" )),
303
- ("ARDUINO_BOARD" , '\\ "%s\\ "' % env .BoardConfig ().get ("name" ).replace ('"' , "" ))
303
+ ("ARDUINO_BOARD" , '\\ "%s\\ "' % env .BoardConfig ().get ("name" ).replace ('"' , "" )),
304
+ "ARDUINO_PARTITION_%s" % env .BoardConfig ().get ("build.partitions" , "default.csv" ).replace (".csv" , "" )
304
305
],
305
306
306
307
LIBSOURCE_DIRS = [
Original file line number Diff line number Diff line change 296
296
("F_CPU" , "$BOARD_F_CPU" ),
297
297
("ARDUINO" , 10812 ),
298
298
("ARDUINO_VARIANT" , '\\ "%s\\ "' % env .BoardConfig ().get ("build.variant" ).replace ('"' , "" )),
299
- ("ARDUINO_BOARD" , '\\ "%s\\ "' % env .BoardConfig ().get ("name" ).replace ('"' , "" ))
299
+ ("ARDUINO_BOARD" , '\\ "%s\\ "' % env .BoardConfig ().get ("name" ).replace ('"' , "" )),
300
+ "ARDUINO_PARTITION_%s" % env .BoardConfig ().get ("build.partitions" , "default.csv" ).replace (".csv" , "" )
300
301
],
301
302
302
303
LIBSOURCE_DIRS = [
You can’t perform that action at this time.
0 commit comments