Merge branch 'bugfix/verify-directory-exists_v4.2' into 'release/v4.2'

Bugfix: add check for existence build directory (v4.2)

See merge request espressif/esp-idf!11581
This commit is contained in:
Ivan Grokhotkov
2020-12-12 01:43:15 +08:00

View File

@@ -114,10 +114,10 @@ def action_extensions(base_actions, project_path):
run_tool("idf_monitor", monitor_args, args.project_dir)
def flash(action, ctx, args):
ensure_build_directory(args, ctx.info_name)
"""
Run esptool to flash the entire project, from an argfile generated by the build system
"""
ensure_build_directory(args, ctx.info_name)
if args.port is None:
args.port = _get_default_serial_port()
@@ -125,6 +125,7 @@ def action_extensions(base_actions, project_path):
"ESPBAUD": str(args.baud)})
def erase_flash(action, ctx, args):
ensure_build_directory(args, ctx.info_name)
esptool_args = _get_esptool_args(args)
esptool_args += ["erase_flash"]
run_tool("esptool.py", esptool_args, args.build_dir)