From d4933e96a48fc2c03328d20e9c01961e3c9976e3 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 23 Mar 2026 17:23:58 +0800 Subject: [PATCH] make baochip boot logo drawing optional in the kernel driver --- services/bao-video/Cargo.toml | 1 + services/bao-video/src/main.rs | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/services/bao-video/Cargo.toml b/services/bao-video/Cargo.toml index 0e641014f..c2a02f3e3 100644 --- a/services/bao-video/Cargo.toml +++ b/services/bao-video/Cargo.toml @@ -56,6 +56,7 @@ hosted-baosec = ["bao1x-emu", "ux-api/hosted-baosec", "no-gam"] # temporary feature - remove after we have properly created a camera control API autotest = [] +with-logo = [] bao1x = ["utralib/bao1x", "blitstr2/bao1x"] b64-export = ["base64"] default = [ diff --git a/services/bao-video/src/main.rs b/services/bao-video/src/main.rs index 36b85e9cc..92f2a8f86 100644 --- a/services/bao-video/src/main.rs +++ b/services/bao-video/src/main.rs @@ -236,9 +236,12 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! { // but it'll do the job 90% of the time and it's way better than having none at all. let is_panic = Arc::new(AtomicBool::new(false)); - // ---- boot logo - display.blit_screen(&ux_api::bitmaps::baochip128x128::BITMAP); - display.redraw(); + // ---- Baochip boot logo, if enabled + #[cfg(feature = "with-logo")] + { + display.blit_screen(&ux_api::bitmaps::baochip128x128::BITMAP); + display.redraw(); + } // This is safe because the SPIM is finished with initialization, and the handler is // Mutex-protected.