From d6f424e338efef1b0464490fa42b4557162ac1a5 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 11 Feb 2021 21:03:18 +0100 Subject: [PATCH] Install `llvm-tools-preview` rustup component --- blog/content/edition-3/posts/02-booting/index.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/blog/content/edition-3/posts/02-booting/index.md b/blog/content/edition-3/posts/02-booting/index.md index 22c9185a..f1912b67 100644 --- a/blog/content/edition-3/posts/02-booting/index.md +++ b/blog/content/edition-3/posts/02-booting/index.md @@ -464,7 +464,19 @@ From the `kernel_dir`, we can then construct the `kernel_manifest` and `target_d #### Creating the Disk Images -We can now use our `boot` crate to create some bootable disk images from our kernel: +There is one last step before we can create the bootable disk images: The `bootloader` build requires the [rustup component] `llvm-tools-preview`. To install it, we can either run `rustup component add llvm-tools-preview` or specify it in our `rust-toolchain` file: + +[rustup component]: https://rust-lang.github.io/rustup/concepts/components.html + +```toml +# in rust-toolchain + +[toolchain] +channel = "nightly" +components = ["rust-src", "rustfmt", "clippy", "llvm-tools-preview"] +``` + +After that can finally use our `boot` crate to create some bootable disk images from our kernel: ```bash > cargo kbuild