76 lines
1.5 KiB
TOML
76 lines
1.5 KiB
TOML
[tasks.install-llvm-tools]
|
|
install_crate = { rustup_component_name = "llvm-tools" }
|
|
|
|
[tasks.flip-link]
|
|
install_crate = { crate_name = "flip-link", binary = "flip-link", test_arg = [
|
|
"-h",
|
|
] }
|
|
|
|
[tasks.objcopy-central]
|
|
install_crate = { crate_name = "cargo-binutils", binary = "cargo", test_arg = [
|
|
"objcopy",
|
|
"--help",
|
|
] }
|
|
command = "cargo"
|
|
args = [
|
|
"objcopy",
|
|
"--release",
|
|
"--bin",
|
|
"central",
|
|
"--",
|
|
"-O",
|
|
"ihex",
|
|
"Kyriav3-central.hex",
|
|
]
|
|
dependencies = ["install-llvm-tools", "flip-link"]
|
|
|
|
[tasks.objcopy-peripheral]
|
|
command = "cargo"
|
|
args = [
|
|
"objcopy",
|
|
"--release",
|
|
"--bin",
|
|
"peripheral",
|
|
"--",
|
|
"-O",
|
|
"ihex",
|
|
"Kyriav3-peripheral.hex",
|
|
]
|
|
dependencies = ["install-llvm-tools", "flip-link"]
|
|
|
|
[tasks.uf2-central]
|
|
install_crate = { crate_name = "cargo-hex-to-uf2", binary = "cargo", test_arg = [
|
|
"hex-to-uf2",
|
|
"--help",
|
|
] }
|
|
command = "cargo"
|
|
args = [
|
|
"hex-to-uf2",
|
|
"--input-path",
|
|
"Kyriav3-central.hex",
|
|
"--output-path",
|
|
"Kyriav3-central.uf2",
|
|
"--family",
|
|
"rp2040",
|
|
]
|
|
dependencies = ["objcopy-central"]
|
|
|
|
[tasks.uf2-peripheral]
|
|
install_crate = { crate_name = "cargo-hex-to-uf2", binary = "cargo", test_arg = [
|
|
"hex-to-uf2",
|
|
"--help",
|
|
] }
|
|
command = "cargo"
|
|
args = [
|
|
"hex-to-uf2",
|
|
"--input-path",
|
|
"Kyriav3-peripheral.hex",
|
|
"--output-path",
|
|
"Kyriav3-peripheral.uf2",
|
|
"--family",
|
|
"rp2040",
|
|
]
|
|
dependencies = ["objcopy-peripheral"]
|
|
|
|
[tasks.uf2]
|
|
dependencies = ["uf2-central", "uf2-peripheral"]
|