Skip to content

Commit c82b01e

Browse files
committed
Convert build_opt.h to build.opt for arduino CLI.
1 parent dfbfa54 commit c82b01e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

platform.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ compiler.elf2bin.extra_flags=
7373
compiler.elf2hex.extra_flags=
7474

7575
# Custom build options
76-
build.opt.name=build_opt.h
76+
build.opt.name=build.opt
7777
build.opt.path={build.path}/{build.opt.name}
7878

7979
# Check if custom build options exist in the sketch folder
80-
recipe.hooks.prebuild.1.pattern=bash -c "[ ! -f "{build.source.path}"/build_opt.h ] || cp -f "{build.source.path}"/build_opt.h "{build.path}"/build_opt.h"
81-
recipe.hooks.prebuild.2.pattern=bash -c "[ -f "{build.path}"/build_opt.h ] || touch "{build.path}"/build_opt.h"
80+
recipe.hooks.prebuild.1.pattern=bash -c "[ ! -f "{build.source.path}"/build_opt.h ] || cp -f "{build.source.path}"/build_opt.h "{build.path}"/build.opt"
81+
recipe.hooks.prebuild.2.pattern=bash -c "[ -f "{build.path}"/build.opt ] || touch "{build.path}"/build.opt"
8282

83-
recipe.hooks.prebuild.1.pattern.windows=cmd /c if exist "{build.source.path}\build_opt.h" COPY /y "{build.source.path}\build_opt.h" "{build.path}\build_opt.h"
84-
recipe.hooks.prebuild.2.pattern.windows=cmd /c if not exist "{build.path}\build_opt.h" type nul > "{build.path}\build_opt.h"
83+
recipe.hooks.prebuild.1.pattern.windows=cmd /c if exist "{build.source.path}\build_opt.h" COPY /y "{build.source.path}\build_opt.h" "{build.path}\build.opt"
84+
recipe.hooks.prebuild.2.pattern.windows=cmd /c if not exist "{build.path}\build.opt" type nul > "{build.path}\build.opt"
8585

8686

8787
# Compile patterns

0 commit comments

Comments
 (0)