From 2eaaa99f6e814aff7c318ddd850b10a101eecaf7 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 1 Oct 2025 02:57:55 +0800 Subject: [PATCH] fix kernel config conflict no signature checking is necessary in the kernel so don't introduce the dependencies --- libs/bao1x-hal/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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;