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-5
Original file line number
Diff line number
Diff line change
@@ -108,28 +108,28 @@ Note that the addresses **must** be given as strings (in either hex or decimal f
108
108
109
109
## Requirements
110
110
111
-
You need a nightly [Rust](https://www.rust-lang.org) compiler and [cargo xbuild](https://github.com/rust-osdev/cargo-xbuild). You also need the `llvm-tools-preview` component, which can be installed through `rustup component add llvm-tools-preview`.
111
+
You need a nightly [Rust](https://www.rust-lang.org) compiler. You also need the `llvm-tools-preview` component, which can be installed through `rustup component add llvm-tools-preview`.
112
112
113
113
## Build
114
114
115
115
The simplest way to use the bootloader is in combination with the [bootimage](https://github.com/rust-osdev/bootimage) tool. This crate **requires at least bootimage 0.7.7**. With the tool installed, you can add a normal cargo dependency on the `bootloader` crate to your kernel and then run `bootimage build` to create a bootable disk image. You can also execute `bootimage run` to run your kernel in [QEMU](https://www.qemu.org/) (needs to be installed).
116
116
117
-
To compile the bootloader manually, you need to invoke `cargo xbuild` with two environment variables:
117
+
To compile the bootloader manually, you need to invoke `cargo build -Zbuild-std=core` with two environment variables:
118
118
*`KERNEL`: points to your kernel executable (in the ELF format)
119
119
*`KERNEL_MANIFEST`: points to the `Cargo.toml` describing your kernel
The `binary` feature is required to enable the dependencies required for compiling the bootloader executable. The command results in a bootloader executable at `target/x86_64-bootloader.json/release/bootloader`. This executable is still an ELF file, which can't be run directly.
0 commit comments