Crates.io | cargo-image |
lib.rs | cargo-image |
version | 0.4.0 |
source | src |
created_at | 2018-12-25 01:48:56.477287 |
updated_at | 2019-08-31 16:39:58.535306 |
description | Create qemu bootable x86_64 OS images |
homepage | https://github.com/DianaNites/cargo-image |
repository | https://github.com/DianaNites/cargo-image |
max_upload_size | |
id | 103694 |
size | 36,890 |
An alternative to bootimage
using cargo-sysroot
.
The advantage of cargo-sysroot
is that it's composable, eg other tools will work with it,
even if they don't know about it, because it sets up cargo so that the
normal commands like cargo build
will work.
Like bootimage
, this tool will combine your kernel with the
x86_64 bootloader
crate, so you can, well, boot it.
In your project directory, simply run cargo image
.
The output image will be located at target/{your-triple}/debug/{your-binary-name}.bin
. Your binary name will usually be the name of your project.
The bootloader
sysroot crates are compiled using cargo sysroot
,
and cargo sysroot
will be called before building your kernel, to ensure everything is up to date.
.cargo/config
setup to build your target.cargo-sysroot
v0.6.0 or later.bootloader
v0.8.0 or later. Older versions are untested and probably won't work.llvm-tools-preview
component via rustup..cargo/config
search path, eg this tool will not look in the parent directory like cargo
would.bootimage
?Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.