Initial init

This commit is contained in:
iaphetes 2025-08-21 15:34:01 +02:00
commit aa241feec8
15 changed files with 3628 additions and 0 deletions

76
Makefile.toml Normal file
View file

@ -0,0 +1,76 @@
[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",
"corne-central.hex",
]
dependencies = ["install-llvm-tools", "flip-link"]
[tasks.objcopy-peripheral]
command = "cargo"
args = [
"objcopy",
"--release",
"--bin",
"peripheral",
"--",
"-O",
"ihex",
"corne-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",
"corne-central.hex",
"--output-path",
"corne-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",
"corne-peripheral.hex",
"--output-path",
"corne-peripheral.uf2",
"--family",
"rp2040",
]
dependencies = ["objcopy-peripheral"]
[tasks.uf2]
dependencies = ["uf2-central", "uf2-peripheral"]