mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Merge branch 'bugfix/verify-directory-exists_v4.1' into 'release/v4.1'
Bugfix: add check for existence build directory (v4.1) See merge request espressif/esp-idf!11583
This commit is contained in:
@ -115,6 +115,7 @@ def action_extensions(base_actions, project_path):
|
|||||||
"""
|
"""
|
||||||
Run esptool to flash the entire project, from an argfile generated by the build system
|
Run esptool to flash the entire project, from an argfile generated by the build system
|
||||||
"""
|
"""
|
||||||
|
ensure_build_directory(args, ctx.info_name)
|
||||||
flasher_args_path = {
|
flasher_args_path = {
|
||||||
# action -> name of flasher args file generated by build system
|
# action -> name of flasher args file generated by build system
|
||||||
"bootloader-flash": "flash_bootloader_args",
|
"bootloader-flash": "flash_bootloader_args",
|
||||||
@ -129,6 +130,7 @@ def action_extensions(base_actions, project_path):
|
|||||||
run_tool("esptool.py", esptool_args, args.build_dir)
|
run_tool("esptool.py", esptool_args, args.build_dir)
|
||||||
|
|
||||||
def erase_flash(action, ctx, args):
|
def erase_flash(action, ctx, args):
|
||||||
|
ensure_build_directory(args, ctx.info_name)
|
||||||
esptool_args = _get_esptool_args(args)
|
esptool_args = _get_esptool_args(args)
|
||||||
esptool_args += ["erase_flash"]
|
esptool_args += ["erase_flash"]
|
||||||
run_tool("esptool.py", esptool_args, args.build_dir)
|
run_tool("esptool.py", esptool_args, args.build_dir)
|
||||||
|
Reference in New Issue
Block a user