[core] Support upload_flags property
This commit is contained in:
@@ -56,7 +56,7 @@ def env_uf2upload(env, target):
|
|||||||
# from platform-espressif32/builder/main.py
|
# from platform-espressif32/builder/main.py
|
||||||
if protocol == "uart":
|
if protocol == "uart":
|
||||||
# upload via UART
|
# upload via UART
|
||||||
env["UPLOADERFLAGS"] = [
|
env["UPLOADERFLAGS_UF2"] = [
|
||||||
"${UF2OUT}",
|
"${UF2OUT}",
|
||||||
"uart",
|
"uart",
|
||||||
"${UPLOAD_PORT}",
|
"${UPLOAD_PORT}",
|
||||||
@@ -77,7 +77,7 @@ def env_uf2upload(env, target):
|
|||||||
# add main upload target
|
# add main upload target
|
||||||
env.Replace(
|
env.Replace(
|
||||||
UPLOADER="${LTCHIPTOOL} uf2 upload",
|
UPLOADER="${LTCHIPTOOL} uf2 upload",
|
||||||
UPLOADCMD="${UPLOADER} ${UPLOADERFLAGS}",
|
UPLOADCMD="${UPLOADER} ${UPLOADERFLAGS_UF2} ${UPLOADERFLAGS}",
|
||||||
)
|
)
|
||||||
actions.append(env.VerboseAction("${UPLOADCMD}", "Uploading ${UF2OUT_BASE}"))
|
actions.append(env.VerboseAction("${UPLOADCMD}", "Uploading ${UF2OUT_BASE}"))
|
||||||
env.AddPlatformTarget("upload", target, actions, "Upload")
|
env.AddPlatformTarget("upload", target, actions, "Upload")
|
||||||
|
|||||||
Reference in New Issue
Block a user