You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,8 @@ It uses a sister crate [`efi_ffi`](https://github.com/gurry/efi_ffi) to interfac
28
28
29
29
30
30
## Building the Crate
31
-
To build this crate:
31
+
32
+
To build the crate:
32
33
1. Make sure the Rust target `x86_64-unknown-uefi` is installed. If not, install it by running the command `rustup target add x86_64-unknown-uefi`
33
34
2. Build the crate by navigating into this repo and running the command `cargo build --target x86_64-unknown-uefi`
34
35
@@ -43,14 +44,14 @@ To write a UEFI application using this framework follow the below steps:
43
44
44
45
```rust
45
46
#![no_std] // Indicates to the Rust compiler that the app does not depend on the standard library but is a 'standalone' application.
46
-
#![no_main] // Indicates that this application does not have a "main" function typically found in a Linux or Windows application (although it does have its own "main" function "efi_main" as declared below)
47
+
#![no_main] // Indicates that this application does not have a standard "main" function typically found in a Linux or Windows application (although it does have its own main function "efi_main")
47
48
48
49
// Externs for efi and alloc crates (alloc crate is the one that contains definitions of String and Vec etc.)
49
50
#[macro_use] externcrate efi;
50
51
externcrate alloc;
51
52
52
53
53
-
// EFI entrypoint or main function. UEFI firmware will call this function to start the application.
54
+
// EFI entrypoint or main function. UEFI firmware will call it to start the application.
54
55
// The signature and the name of this function must be exactly as below.
Building the application requires the target `x86_64-unknown-uefi` to be installed on your machine. Install it by running `rustup target add x86_64-unknown-uefi` in command shell.
75
77
76
78
After the target is installed, build the application with the command `cargo build --target x86_64-unknown-uefi`. When the build completes the resulting EFI application `my_efi_app.efi` will be found in `target\x86_64-unknown-uefi\debug\`
0 commit comments