mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
make secboot optional
This commit is contained in:
parent
f95b05fdb0
commit
0c6ee68a3b
2 changed files with 6 additions and 4 deletions
|
|
@ -18,13 +18,13 @@ 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"]
|
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"]
|
renode = ["utralib/renode", "ed25519-dalek-loader/renode", "curve25519-dalek-loader/renode", "resume", "secboot"]
|
||||||
cramium = ["utralib/cramium"]
|
|
||||||
platform-tests = []
|
platform-tests = []
|
||||||
debug-print = []
|
debug-print = []
|
||||||
earlyprintk = []
|
earlyprintk = []
|
||||||
renode-bypass = []
|
renode-bypass = []
|
||||||
|
secboot = []
|
||||||
#default = ["debug-print"]
|
#default = ["debug-print"]
|
||||||
resume = [] # suspend/resume pathway code
|
resume = [] # suspend/resume pathway code
|
||||||
default = []
|
default = []
|
||||||
|
|
@ -55,8 +55,9 @@ const VVDBG: bool = false; // very verbose debug
|
||||||
mod debug;
|
mod debug;
|
||||||
|
|
||||||
mod fonts;
|
mod fonts;
|
||||||
|
#[cfg(feature="secboot")]
|
||||||
mod secboot;
|
mod secboot;
|
||||||
|
#[cfg(feature="secboot")]
|
||||||
use secboot::SIGBLOCK_SIZE;
|
use secboot::SIGBLOCK_SIZE;
|
||||||
|
|
||||||
// Install a panic handler when not running tests.
|
// Install a panic handler when not running tests.
|
||||||
|
|
@ -1396,6 +1397,7 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
|
||||||
// initially validate the whole image on disk (including kernel args)
|
// initially validate the whole image on disk (including kernel args)
|
||||||
// kernel args must be validated because tampering with them can change critical assumptions about
|
// kernel args must be validated because tampering with them can change critical assumptions about
|
||||||
// how data is loaded into memory
|
// how data is loaded into memory
|
||||||
|
#[cfg(feature="secboot")]
|
||||||
if !secboot::validate_xous_img(signed_buffer as *const u32) {
|
if !secboot::validate_xous_img(signed_buffer as *const u32) {
|
||||||
loop {}
|
loop {}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue