Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ fletcher = { version = "0.3", default-features = false }
fnv = { version = "1.0.7", default-features = false }
getrandom = { version = "0.2", default-features = false }
goblin = { version = "0.4.3", default-features = true } # goblin::Object doesn't work without everything enabled
glob = { version = "0.3.3", default-features = false }
heapless = { version = "0.7.17", default-features = false }
heck = { version = "0.5.0", default-features = false }
hkdf = { version = "0.12", default-features = false }
Expand Down
6 changes: 2 additions & 4 deletions app/cosmo/base.toml
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,14 @@ max-sizes = {flash = 131072, ram = 16384 }
stacksize = 2600
start = true
task-slots = ["sys", {spi = "spi2_driver"}, "auxflash"]
copy-to-archive = ["register_defs"]

[tasks.spartan7_loader.config]
program_l = "sys_api::Port::B.pin(1)"
init_l = "sys_api::Port::B.pin(6)"
config_done = "sys_api::Port::B.pin(4)"
user_reset_l = "sys_api::Port::A.pin(6)"

[tasks.cosmo_seq.config]
fpga_image = "cosmo-a.bin"
register_defs = "cosmo-regs-a.json"
Comment on lines -211 to -214
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find this anywhere so I think it's just cruft?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's why I deleted it 😄

register_defs = "cosmo-seq/*.json"

[tasks.hash_driver]
name = "drv-stm32h7-hash-server"
Expand Down
1 change: 1 addition & 0 deletions build/xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ directories = { workspace = true }
dunce = { workspace = true }
filetime = { workspace = true }
fnv = { workspace = true }
glob = { workspace = true }
goblin = { workspace = true }
hex = "0.4"
hubtools = { workspace = true }
Expand Down
22 changes: 14 additions & 8 deletions build/xtask/src/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -955,14 +955,20 @@ fn build_archive(
let dir = pkg.manifest_path.parent().unwrap();

let f = dir.join(s);
let task_dir = PathBuf::from("task").join(name).join(s);
archive.copy(f, task_dir).with_context(|| {
format!(
"task {name}: failed to copy \"{s}\" in {} \
into the archive",
dir.display()
)
})?;
let task_dir = PathBuf::from("task").join(name);
for f in glob::glob(f.to_str().unwrap())? {
let f = f?;
let task_file = f.strip_prefix(dir)?;
archive
.copy(&f, task_dir.join(task_file))
.with_context(|| {
format!(
"task {name}: failed to copy \"{s}\" in {} \
into the archive",
dir.display()
)
})?;
}
}
Some(_) => {
bail!(
Expand Down
Loading