Simplify paths to platform tools to handle whitespaces

Resolve #16
This commit is contained in:
valeros 2021-08-06 21:07:53 +03:00
parent 2489c767f4
commit 7b48a72f89

View File

@ -43,7 +43,7 @@ def generate_uf2(target, source, env):
env.Execute(
" ".join(
[
join(platform.get_package_dir("tool-rp2040tools") or "", "elf2uf2"),
"elf2uf2",
'"%s"' % elf_file,
'"%s"' % elf_file.replace(".elf", ".uf2"),
]
@ -154,7 +154,7 @@ if upload_protocol == "mbed":
]
elif upload_protocol == "picotool":
env.Replace(
UPLOADER=join(platform.get_package_dir("tool-rp2040tools") or "", "rp2040load"),
UPLOADER="rp2040load",
UPLOADERFLAGS=["-v", "-D"],
UPLOADCMD="$UPLOADER $UPLOADERFLAGS $SOURCES"
)