rust-osdev / bootimage

Tool to create bootable disk images from a Rust OS kernel.
Apache License 2.0
767 stars 67 forks source link

Make `cargo bootimage` use `cargo build` instead of `cargo xbuild` #63

Closed phil-opp closed 4 years ago

phil-opp commented 4 years ago

This updates the cargo bootimage command to build the kernel using a normal cargo build instead of cargo xbuild by default. This makes it possible to create kernels that don't depend on the cargo-xbuild crate anymore.

The cargo subcommand that is used for the kernel build can be adjusted by a new package.metadata.bootimage.build-command configuration key, which is set to ["build"]. By setting it to ["xbuild"], it is possible to make the kernel build use the cargo-xbuild crate again. It is also possible to pass additional build arguments.

This is a breaking change.

phil-opp commented 4 years ago

Published as v0.9.0