Merge pull request #4 from adafruit/follow-up-esptool_extra
use upload.extra_flags instead of build.esptool_extra
This commit is contained in:
commit
5877b039fa
2 changed files with 94 additions and 84 deletions
175
boards.txt
175
boards.txt
File diff suppressed because it is too large
Load diff
|
|
@ -93,7 +93,6 @@ build.defines=
|
|||
build.loop_core=
|
||||
build.event_core=
|
||||
build.extra_flags=-DESP32 -DCORE_DEBUG_LEVEL={build.code_debug} {build.loop_core} {build.event_core} {build.defines} {build.extra_flags.{build.mcu}}
|
||||
build.esptool_extra=
|
||||
|
||||
# Check if custom partitions exist: source > variant > build.partitions
|
||||
recipe.hooks.prebuild.1.pattern=bash -c "[ ! -f {build.source.path}/partitions.csv ] || cp -f {build.source.path}/partitions.csv {build.path}/partitions.csv"
|
||||
|
|
@ -145,7 +144,7 @@ recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss|\.noinit)\s+([0-9]+).*
|
|||
tools.esptool_py.upload.protocol=esp32
|
||||
tools.esptool_py.upload.params.verbose=
|
||||
tools.esptool_py.upload.params.quiet=
|
||||
tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size detect 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" 0x1000 "{build.path}/{build.project_name}.bootloader.bin" 0x10000 "{build.path}/{build.project_name}.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" {build.esptool_extra}
|
||||
tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size detect 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" 0x1000 "{build.path}/{build.project_name}.bootloader.bin" 0x10000 "{build.path}/{build.project_name}.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" {upload.extra_flags}
|
||||
tools.esptool_py.upload.pattern="{path}/{cmd}" {upload.pattern_args}
|
||||
tools.esptool_py.upload.pattern.linux=python "{path}/{cmd}" {upload.pattern_args}
|
||||
tools.esptool_py.upload.network_pattern={network_cmd} -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin"
|
||||
|
|
|
|||
Loading…
Reference in a new issue