Skip to content

Commit

Permalink
chore(deps): update uefi
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed May 1, 2024
1 parent f42f8ab commit 2eb4c17
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/labs/0x00/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ targets = [ "x86_64-unknown-uefi" ]

```json
{
"rust-analyzer.cargo.target": "x86_64-unknown-uefi"
"rust-analyzer.cargo.target": "x86_64-unknown-none"
}
```

Expand Down Expand Up @@ -341,7 +341,7 @@ use uefi::prelude::*;

#[entry]
fn efi_main(image: uefi::Handle, mut system_table: SystemTable<Boot>) -> Status {
uefi_services::init(&mut system_table).expect("Failed to initialize utilities");
uefi::helpers::init(&mut system_table).expect("Failed to initialize utilities");
log::set_max_level(log::LevelFilter::Info);

let std_num = /* FIXME */;
Expand Down
7 changes: 5 additions & 2 deletions src/0x00/pkg/boot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
uefi = "0.27"
uefi-services = { version = "0.24" }
uefi = { version = "0.28", default-features = false }
log = "0.4"

[features]
boot = ["uefi/alloc", "uefi/logger", "uefi/panic_handler", "uefi/global_allocator"]
default = ["boot"]
6 changes: 3 additions & 3 deletions src/0x01/pkg/boot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ edition = "2021"

[dependencies]
arrayvec = { version = "0.7", default-features = false }
uefi = "0.27"
uefi-services = { version = "0.24", optional = true }
uefi = { version = "0.28", default-features = false }
log = "0.4"
x86_64 = "0.15"
xmas-elf = "0.9"
elf = { package = "ysos_elf", path = "../elf" }

[features]
boot = ["uefi/alloc", "uefi-services"]
boot = ["uefi/alloc", "uefi/logger", "uefi/panic_handler", "uefi/global_allocator"]
default = ["boot"]

2 changes: 1 addition & 1 deletion src/0x01/pkg/boot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CONFIG_PATH: &str = "\\EFI\\BOOT\\boot.conf";

#[entry]
fn efi_main(image: uefi::Handle, mut system_table: SystemTable<Boot>) -> Status {
uefi_services::init(&mut system_table).expect("Failed to initialize utilities");
uefi::helpers::init(&mut system_table).expect("Failed to initialize utilities");

log::set_max_level(log::LevelFilter::Info);
info!("Running UEFI bootloader...");
Expand Down

0 comments on commit 2eb4c17

Please sign in to comment.