From 816f9b7cb300a7f3979b5f29b3677e84a3c28880 Mon Sep 17 00:00:00 2001 From: Vaze Date: Mon, 25 May 2026 10:25:45 +0200 Subject: Created a .gitignore to remove nasty build artifacts and created a Makefile.toml for cargo make to automate bootloader build process. --- bootloader/src/main.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bootloader/src') diff --git a/bootloader/src/main.rs b/bootloader/src/main.rs index 04afe41..d26ba08 100644 --- a/bootloader/src/main.rs +++ b/bootloader/src/main.rs @@ -3,14 +3,14 @@ use core::time::Duration; use log::info; -use uefi::print; -use uefi::prelude::*; +use uefi::CString16; use uefi::Result; use uefi::Status; -use uefi::CString16; +use uefi::boot::{self, ScopedProtocol}; use uefi::fs::{FileSystem, FileSystemResult}; +use uefi::prelude::*; +use uefi::print; use uefi::proto::media::fs::SimpleFileSystem; -use uefi::boot::{self, ScopedProtocol}; extern crate alloc; use alloc::vec::Vec; @@ -37,7 +37,8 @@ fn load_kernel() -> Result { fn read_file(path: &str) -> FileSystemResult> { let path: CString16 = CString16::try_from(path).unwrap(); - let fs: ScopedProtocol = boot::get_image_file_system(boot::image_handle()).unwrap(); + let fs: ScopedProtocol = + boot::get_image_file_system(boot::image_handle()).unwrap(); let mut fs = FileSystem::new(fs); fs.read(path.as_ref()) } -- cgit v1.2.3