diff --git a/libs/bao1x-hal/src/lib.rs b/libs/bao1x-hal/src/lib.rs index 73a6ead8c..a123cbb61 100644 --- a/libs/bao1x-hal/src/lib.rs +++ b/libs/bao1x-hal/src/lib.rs @@ -34,7 +34,13 @@ pub mod acram; pub mod mbox; #[cfg(not(feature = "hosted-baosec"))] pub mod rram; -#[cfg(not(feature = "hosted-baosec"))] +// no signature checking in the kernel +#[cfg(all( + not(feature = "hosted-baosec"), + not(feature = "kernel-baosec"), + not(feature = "kernel-dabao"), + not(feature = "kernel-baosor") +))] pub mod sigcheck; #[cfg(not(feature = "hosted-baosec"))] pub mod sram_trim;