mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix cramium build targets
This commit is contained in:
parent
defc4cf3c4
commit
0692a25323
2 changed files with 5 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ curve25519-dalek-loader = { path = "curve25519-dalek-loader", default-features =
|
||||||
utralib = { version = "0.1.23", optional = true, default-features = false }
|
utralib = { version = "0.1.23", optional = true, default-features = false }
|
||||||
armv7 = { git = "https://github.com/Foundation-Devices/armv7.git", branch = "update", optional = true }
|
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 }
|
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]
|
[dependencies.com_rs]
|
||||||
git = "https://github.com/betrusted-io/com_rs"
|
git = "https://github.com/betrusted-io/com_rs"
|
||||||
|
|
@ -21,8 +21,8 @@ branch = "main"
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
precursor = ["utralib/precursor", "ed25519-dalek-loader/precursor", "curve25519-dalek-loader/precursor", "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"]
|
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-soc = ["utralib/cramium-soc", "debug-print", "simulation-only"]
|
||||||
cramium-fpga = ["utralib/cramium-fpga", "debug-print", "simulation-only"]
|
cramium-fpga = ["utralib/cramium-fpga", "debug-print", "simulation-only"]
|
||||||
atsama5d27 = ["utralib/atsama5d27", "armv7", "dep:atsama5d27"]
|
atsama5d27 = ["utralib/atsama5d27", "armv7", "dep:atsama5d27"]
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,8 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
|
||||||
// how data is loaded into memory
|
// how data is loaded into memory
|
||||||
#[cfg(feature = "secboot")]
|
#[cfg(feature = "secboot")]
|
||||||
let mut fs_prehash = [0u8; 64];
|
let mut fs_prehash = [0u8; 64];
|
||||||
|
#[cfg(not(feature = "secboot"))]
|
||||||
|
let fs_prehash = [0u8; 64];
|
||||||
#[cfg(feature = "secboot")]
|
#[cfg(feature = "secboot")]
|
||||||
if !secboot::validate_xous_img(signed_buffer as *const u32, &mut fs_prehash) {
|
if !secboot::validate_xous_img(signed_buffer as *const u32, &mut fs_prehash) {
|
||||||
loop {}
|
loop {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue