mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
548ea1bdd5
@mmoskal This commit adds basic support for UF2 into ESP-IDF.
25 lines
744 B
Python
25 lines
744 B
Python
from idf_py_actions.tools import ensure_build_directory, run_target
|
|
|
|
|
|
def action_extensions(base_actions, project_path):
|
|
def uf2_target(target_name, ctx, args):
|
|
ensure_build_directory(args, ctx.info_name)
|
|
run_target(target_name, args)
|
|
|
|
uf2_actions = {
|
|
"actions": {
|
|
"uf2": {
|
|
"callback": uf2_target,
|
|
"short_help": "Generate the UF2 binary with all the binaries included",
|
|
"dependencies": ["all"],
|
|
},
|
|
"uf2-app": {
|
|
"callback": uf2_target,
|
|
"short_help": "Generate an UF2 binary for the application only",
|
|
"dependencies": ["all"],
|
|
},
|
|
}
|
|
}
|
|
|
|
return uf2_actions
|