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
-Setupan [artifactdependency](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#artifact-dependencies) to add your `kernel` crate as a `build-dependency`:
@@ -88,7 +84,7 @@ To combine your kernel with `bootloader` and create a bootable disk image, follo
88
84
channel="nightly"
89
85
targets= ["x86_64-unknown-none"]
90
86
```
91
-
-Alternatively, youcanuse [`std::process::Command`](https://doc.rust-lang.org/stable/std/process/struct.Command.html) to invoke the build command of your kernel in the `build.rs` script.
87
+
-Alternatively, youcanuse [`std::process::Command`](https://doc.rust-lang.org/stable/std/process/struct.Command.html) to invoke the build command of your kernel in the `build.rs` script.
92
88
-Create a [`build.rs`](https://doc.rust-lang.org/cargo/reference/build-scripts.html) build script in the `os` crate. See our [disk image creation template](docs/create-disk-image.md) for a more detailed example.
93
89
-Obtain the path to the kernel executable.When using an artifact dependency, you can retrieve this path using `std::env::var_os("CARGO_BIN_FILE_MY_KERNEL_my-kernel")`
94
90
-Use `bootloader::UefiBoot` and/or `bootloader::BiosBoot` to create a bootable disk image with your kernel.
Copy file name to clipboardExpand all lines: examples/basic/basic-os.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The `basic` create combines the kernel with `bootloader`, creates a bootable dis
35
35
- A [cargo build script](https://doc.rust-lang.org/cargo/reference/build-scripts.html) is used to create a bootable disk image ([`build.rs`](build.rs)).
36
36
- `basic` launches the images in QEMU.
37
37
38
-
See also [basic-kernel.md](kernel/basic-kernel.md) in the `kernel` subdirectory.
38
+
See also [basic-kernel.md](kernel/basic-kernel.md) in the `kernel` subdirectory.
0 commit comments