[core] Allow exporting UF2 under a custom filename

This commit is contained in:
Kuba Szczodrzyński
2022-08-06 17:06:08 +02:00
parent 0bd613d556
commit 10c5945afb

View File

@@ -30,7 +30,10 @@ def env_uf2ota(env, *args, **kwargs):
"${FAMILY}",
f"lt{lt_version}",
]
output = join("${BUILD_DIR}", "_".join(output)) + ".uf2"
output = "_".join(output) + ".uf2"
if platform.custom("fw_output"):
output = platform.custom("fw_output")
output = join("${BUILD_DIR}", output)
env["UF2OUT"] = output
env["UF2OUT_BASE"] = basename(output)