mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
idf.py: Add --before flag to esptool.py call
Merges https://github.com/espressif/esp-idf/pull/4125
This commit is contained in:
parent
c0c75478fa
commit
e6ad82a0b2
@ -448,10 +448,11 @@ def init_cli(verbose_output=None):
|
|||||||
for o, f in flash_items:
|
for o, f in flash_items:
|
||||||
cmd += o + " " + flasher_path(f) + " "
|
cmd += o + " " + flasher_path(f) + " "
|
||||||
|
|
||||||
print("%s -p %s -b %s --after %s write_flash %s" % (
|
print("%s -p %s -b %s --before %s --after %s write_flash %s" % (
|
||||||
_safe_relpath("%s/components/esptool_py/esptool/esptool.py" % os.environ["IDF_PATH"]),
|
_safe_relpath("%s/components/esptool_py/esptool/esptool.py" % os.environ["IDF_PATH"]),
|
||||||
args.port or "(PORT)",
|
args.port or "(PORT)",
|
||||||
args.baud,
|
args.baud,
|
||||||
|
flasher_args["extra_esptool_args"]["before"],
|
||||||
flasher_args["extra_esptool_args"]["after"],
|
flasher_args["extra_esptool_args"]["after"],
|
||||||
cmd.strip(),
|
cmd.strip(),
|
||||||
))
|
))
|
||||||
|
@ -40,6 +40,7 @@ def action_extensions(base_actions, project_path):
|
|||||||
flasher_args = json.load(f)
|
flasher_args = json.load(f)
|
||||||
|
|
||||||
extra_esptool_args = flasher_args["extra_esptool_args"]
|
extra_esptool_args = flasher_args["extra_esptool_args"]
|
||||||
|
result += ["--before", extra_esptool_args["before"]]
|
||||||
result += ["--after", extra_esptool_args["after"]]
|
result += ["--after", extra_esptool_args["after"]]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user