chore(code): split much of the efi support code to crates/eficore

This commit is contained in:
alex committed 2025-11-03 20:47:21 -05:00
1 parent 48497700d8
commit 632781abbf
39 files changed
+440 -378

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
use crate::logger;
use anyhow::{Context, Result};
/// Initializes the UEFI environment.
pub fn init() -> Result<()> {
// Initialize the logger for Sprout.
// NOTE: This cannot use a result type as errors need to be printed
// using the logger, which is not initialized until this returns.
logger::init();
// Initialize further UEFI internals.
uefi::helpers::init().context("unable to initialize uefi environment")?;
Ok(())
}