Skip to content

Commit

Permalink
fix cramium build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Jan 7, 2024
1 parent defc4cf commit 0692a25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ curve25519-dalek-loader = { path = "curve25519-dalek-loader", default-features =
utralib = { version = "0.1.23", optional = true, default-features = false }
armv7 = { git = "https://github.com/Foundation-Devices/armv7.git", branch = "update", optional = true }
atsama5d27 = { git = "https://github.com/Foundation-Devices/atsama5d27.git", branch = "master", optional = true }
sha2-loader = { path = "./sha2-loader", default-features = false }
sha2-loader = { path = "./sha2-loader", default-features = false, optional = true }

[dependencies.com_rs]
git = "https://github.com/betrusted-io/com_rs"
Expand All @@ -21,8 +21,8 @@ branch = "main"
lazy_static = "1.4.0"

[features]
precursor = ["utralib/precursor", "ed25519-dalek-loader/precursor", "curve25519-dalek-loader/precursor", "resume", "secboot"]
renode = ["utralib/renode", "ed25519-dalek-loader/renode", "curve25519-dalek-loader/renode", "resume", "secboot"]
precursor = ["utralib/precursor", "ed25519-dalek-loader/precursor", "curve25519-dalek-loader/precursor", "resume", "secboot", "sha2-loader"]
renode = ["utralib/renode", "ed25519-dalek-loader/renode", "curve25519-dalek-loader/renode", "resume", "secboot", "sha2-loader"]
cramium-soc = ["utralib/cramium-soc", "debug-print", "simulation-only"]
cramium-fpga = ["utralib/cramium-fpga", "debug-print", "simulation-only"]
atsama5d27 = ["utralib/atsama5d27", "armv7", "dep:atsama5d27"]
Expand Down
2 changes: 2 additions & 0 deletions loader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
// how data is loaded into memory
#[cfg(feature = "secboot")]
let mut fs_prehash = [0u8; 64];
#[cfg(not(feature = "secboot"))]
let fs_prehash = [0u8; 64];
#[cfg(feature = "secboot")]
if !secboot::validate_xous_img(signed_buffer as *const u32, &mut fs_prehash) {
loop {}
Expand Down

0 comments on commit 0692a25

Please sign in to comment.