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. --- .../.fingerprint/bootloader-9c757053751da49b/output-bin-bootloader | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 bootloader/target/debug/.fingerprint/bootloader-9c757053751da49b/output-bin-bootloader (limited to 'bootloader/target/debug/.fingerprint/bootloader-9c757053751da49b/output-bin-bootloader') diff --git a/bootloader/target/debug/.fingerprint/bootloader-9c757053751da49b/output-bin-bootloader b/bootloader/target/debug/.fingerprint/bootloader-9c757053751da49b/output-bin-bootloader deleted file mode 100644 index 1d2a974..0000000 --- a/bootloader/target/debug/.fingerprint/bootloader-9c757053751da49b/output-bin-bootloader +++ /dev/null @@ -1,7 +0,0 @@ -{"$message_type":"diagnostic","message":"unresolved import `uefi::fs`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018 or later, paths in `use` statements are relative to the current\nmodule unless they begin with the name of a crate or a literal `crate::`, in\nwhich case they start from the crate root. As in Rust 2015 code, the `self::`\nand `super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nSince Rust 2018 the `extern crate` declaration is not required and\nyou can instead just `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":139,"byte_end":141,"line_start":9,"line_end":9,"column_start":11,"column_end":13,"is_primary":true,"text":[{"text":"use uefi::fs::FileSystem;","highlight_start":11,"highlight_end":13}],"label":"could not find `fs` in `uefi`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"found an item that was configured out","code":null,"level":"note","spans":[{"file_name":"/home/gvr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/uefi-0.37.0/src/lib.rs","byte_start":12168,"byte_end":12185,"line_start":284,"line_end":284,"column_start":7,"column_end":24,"is_primary":false,"text":[{"text":"#[cfg(feature = \"alloc\")]","highlight_start":7,"highlight_end":24}],"label":"the item is gated behind the `alloc` feature","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/home/gvr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/uefi-0.37.0/src/lib.rs","byte_start":12196,"byte_end":12198,"line_start":285,"line_end":285,"column_start":9,"column_end":11,"is_primary":true,"text":[{"text":"pub mod fs;","highlight_start":9,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0432]\u001b[0m\u001b[1m: unresolved import `uefi::fs`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:9:11\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m 9\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use uefi::fs::FileSystem;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^\u001b[0m \u001b[1m\u001b[91mcould not find `fs` in `uefi`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[92mnote\u001b[0m: found an item that was configured out\n \u001b[1m\u001b[94m--> \u001b[0m/home/gvr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/uefi-0.37.0/src/lib.rs:285:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m284\u001b[0m \u001b[1m\u001b[94m|\u001b[0m #[cfg(feature = \"alloc\")]\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-----------------\u001b[0m \u001b[1m\u001b[94mthe item is gated behind the `alloc` feature\u001b[0m\n\u001b[1m\u001b[94m285\u001b[0m \u001b[1m\u001b[94m|\u001b[0m pub mod fs;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[92m^^\u001b[0m\n\n"} -{"$message_type":"diagnostic","message":"unwinding panics are not supported without std","code":null,"level":"error","spans":[],"children":[{"message":"using nightly cargo, use -Zbuild-std with panic=\"abort\" to avoid unwinding","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"since the core library is usually precompiled with panic=\"unwind\", rebuilding your crate with panic=\"abort\" may not be enough to fix the problem","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: unwinding panics are not supported without std\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mhelp\u001b[0m: using nightly cargo, use -Zbuild-std with panic=\"abort\" to avoid unwinding\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: since the core library is usually precompiled with panic=\"unwind\", rebuilding your crate with panic=\"abort\" may not be enough to fix the problem\n\n"} -{"$message_type":"diagnostic","message":"cannot borrow `boot_fs` as mutable, as it is not declared as mutable","code":{"code":"E0596","explanation":"This error occurs because you tried to mutably borrow a non-mutable variable.\n\nErroneous code example:\n\n```compile_fail,E0596\nlet x = 1;\nlet y = &mut x; // error: cannot borrow mutably\n```\n\nIn here, `x` isn't mutable, so when we try to mutably borrow it in `y`, it\nfails. To fix this error, you need to make `x` mutable:\n\n```\nlet mut x = 1;\nlet y = &mut x; // ok!\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":471,"byte_end":478,"line_start":22,"line_end":22,"column_start":20,"column_end":27,"is_primary":true,"text":[{"text":" let boot_dir = boot_fs.open_volume();","highlight_start":20,"highlight_end":27}],"label":"cannot borrow as mutable","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider changing this to be mutable","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":390,"byte_end":390,"line_start":21,"line_end":21,"column_start":9,"column_end":9,"is_primary":true,"text":[{"text":" let boot_fs = boot::get_image_file_system(boot::image_handle())?;","highlight_start":9,"highlight_end":9}],"label":null,"suggested_replacement":"mut ","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0596]\u001b[0m\u001b[1m: cannot borrow `boot_fs` as mutable, as it is not declared as mutable\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:22:20\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let boot_dir = boot_fs.open_volume();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[91m^^^^^^^\u001b[0m \u001b[1m\u001b[91mcannot borrow as mutable\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: consider changing this to be mutable\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m21\u001b[0m \u001b[1m\u001b[94m| \u001b[0m let \u001b[92mmut \u001b[0mboot_fs = boot::get_image_file_system(boot::image_handle())?;\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+++\u001b[0m\n\n"} -{"$message_type":"diagnostic","message":"unused variable: `boot_dir`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":460,"byte_end":468,"line_start":22,"line_end":22,"column_start":9,"column_end":17,"is_primary":true,"text":[{"text":" let boot_dir = boot_fs.open_volume();","highlight_start":9,"highlight_end":17}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"if this is intentional, prefix it with an underscore","code":null,"level":"help","spans":[{"file_name":"src/main.rs","byte_start":460,"byte_end":468,"line_start":22,"line_end":22,"column_start":9,"column_end":17,"is_primary":true,"text":[{"text":" let boot_dir = boot_fs.open_volume();","highlight_start":9,"highlight_end":17}],"label":null,"suggested_replacement":"_boot_dir","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `boot_dir`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:22:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m22\u001b[0m \u001b[1m\u001b[94m|\u001b[0m let boot_dir = boot_fs.open_volume();\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^\u001b[0m \u001b[1m\u001b[33mhelp: if this is intentional, prefix it with an underscore: `_boot_dir`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default\n\n"} -{"$message_type":"diagnostic","message":"aborting due to 3 previous errors; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 3 previous errors; 1 warning emitted\u001b[0m\n\n"} -{"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0432, E0596.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mSome errors have detailed explanations: E0432, E0596.\u001b[0m\n"} -{"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0432`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about an error, try `rustc --explain E0432`.\u001b[0m\n"} -- cgit v1.2.3