88name=ESP8266 Boards (2.6.0-dev)
99version=2.6.0-dev
1010
11+ # These will be removed by the packager script when doing a JSON release
1112runtime.tools.xtensa-lx106-elf-gcc.path={runtime.platform.path}/tools/xtensa-lx106-elf
13+ runtime.tools.python.path={runtime.platform.path}/tools/python
14+
1215runtime.tools.esptool.path={runtime.platform.path}/tools/esptool
1316runtime.tools.signing={runtime.platform.path}/tools/signing.py
1417runtime.tools.elf2bin={runtime.platform.path}/tools/elf2bin.py
1518runtime.tools.makecorever={runtime.platform.path}/tools/makecorever.py
1619runtime.tools.eboot={runtime.platform.path}/bootloaders/eboot/eboot.elf
17- runtime.tools.python=python
18- runtime.tools.python.windows={runtime.platform.path}/tools/python/python.exe
1920
2021compiler.warning_flags=-w
2122compiler.warning_flags.none=-w
@@ -66,9 +67,6 @@ compiler.elf2hex.flags=
6667
6768compiler.size.cmd=xtensa-lx106-elf-size
6869
69- compiler.esptool.cmd=esptool
70- compiler.esptool.cmd.windows=esptool.exe
71-
7270# This can be overriden in boards.txt
7371build.extra_flags=-DESP8266
7472
@@ -83,8 +81,8 @@ compiler.elf2hex.extra_flags=
8381
8482## generate file with git version number
8583## needs bash, git, and echo
86- recipe.hooks.core.prebuild.1.pattern="{runtime.tools.python} " "{runtime.tools.signing}" --mode header --publickey "{build.source.path}/public.key" --out "{build.path}/core/Updater_Signing.h"
87- recipe.hooks.core.prebuild.2.pattern="{runtime.tools.python} " "{runtime.tools.makecorever}" --build_path "{build.path}" --platform_path "{runtime.platform.path}" --version "unix-{version}"
84+ recipe.hooks.core.prebuild.1.pattern="{runtime.tools.python.path}/python " "{runtime.tools.signing}" --mode header --publickey "{build.source.path}/public.key" --out "{build.path}/core/Updater_Signing.h"
85+ recipe.hooks.core.prebuild.2.pattern="{runtime.tools.python.path}/python " "{runtime.tools.makecorever}" --build_path "{build.path}" --platform_path "{runtime.platform.path}" --version "unix-{version}"
8886
8987## Build the app.ld linker file
9088recipe.hooks.linking.prelink.1.pattern="{compiler.path}{compiler.c.cmd}" -CC -E -P {build.vtable_flags} "{runtime.platform.path}/tools/sdk/ld/eagle.app.v6.common.ld.h" -o "{build.path}/local.eagle.app.v6.common.ld"
@@ -108,8 +106,8 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {build.exception_
108106recipe.objcopy.eep.pattern=
109107
110108## Create hex
111- recipe.objcopy.hex.1.pattern="{runtime.tools.python} " "{runtime.tools.elf2bin}" --eboot "{runtime.tools.eboot}" --app "{build.path}/{build.project_name}.elf" --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size {build.flash_size} --path "{runtime.tools.xtensa-lx106-elf-gcc.path}/bin" --out "{build.path}/{build.project_name}.bin"
112- recipe.objcopy.hex.2.pattern="{runtime.tools.python} " "{runtime.tools.signing}" --mode sign --privatekey "{build.source.path}/private.key" --bin "{build.path}/{build.project_name}.bin" --out "{build.path}/{build.project_name}.bin.signed"
109+ recipe.objcopy.hex.1.pattern="{runtime.tools.python.path}/python " "{runtime.tools.elf2bin}" --eboot "{runtime.tools.eboot}" --app "{build.path}/{build.project_name}.elf" --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size {build.flash_size} --path "{runtime.tools.xtensa-lx106-elf-gcc.path}/bin" --out "{build.path}/{build.project_name}.bin"
110+ recipe.objcopy.hex.2.pattern="{runtime.tools.python.path}/python " "{runtime.tools.signing}" --mode sign --privatekey "{build.source.path}/private.key" --bin "{build.path}/{build.project_name}.bin" --out "{build.path}/{build.project_name}.bin.signed"
113111
114112## Save hex
115113recipe.output.tmp_file={build.project_name}.bin
@@ -123,12 +121,14 @@ recipe.size.regex.data=^(?:\.data|\.rodata|\.bss)\s+([0-9]+).*
123121
124122# ------------------------------
125123
126- # Need to duplicate the python path because Arduino does not replace properly in this stage
127- tools.esptool.cmd=python
128- tools.esptool.cmd.windows={runtime.platform.path}/tools/python/python.exe
129124tools.esptool.path=
130- tools.esptool.network_cmd=python
131- tools.esptool.network_cmd.windows={runtime.platform.path}/tools/python/python.exe
125+ # Because the variable expansion doesn't allow one tool to find another, the following lines
126+ # will point to "{runtime.platform.path}/tools/python/python" in GIT and
127+ # "{runtime.tools.python.path}/python" for JSON board manager releases.
128+ #tools.esptool.cmd={runtime.tools.python.path}/python
129+ #tools.esptool.network_cmd={runtime.tools.python.path}/python
130+ tools.esptool.cmd={runtime.platform.path}/tools/python/python
131+ tools.esptool.network_cmd={runtime.platform.path}/tools/python/python
132132
133133tools.esptool.upload.protocol=esp
134134tools.esptool.upload.params.verbose=--trace
0 commit comments