-
Notifications
You must be signed in to change notification settings - Fork 215
Add cargo features to build only UEFI or BIOS bootloader #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Anyone working on this? I'd like to make an attempt with some guidance. Obviously [features]
default = ["bios", "uefi"]
bios = []
uefi = [] And I was thinking I'd add add this to #[cfg(feature = "bios")]
mod bios; // src/bios/mod.rs
#[cfg(feature = "bios")]
pub use bios::BiosBoot;
#[cfg(feature = "uefi")]
mod uefi; // src/uefi/mod.rs
#[cfg(feature = "uefi")]
pub use uefi::UefiBoot; Move |
Thanks, your approach looks good! The second step is then to update the |
See jasoncouture#1 ( #313 ) and let me know what you think @AlexJMohr |
Add bios and uefi cargo features (closes #287)
Some projects only need one build standard. So we should allow to build only the UEFI or the BIOS bootloader to make it possible to reduce compile times. To achieve this, we could add new
uefi
andbios
cargo features, which are both enabled by defaultProposed by @AviiNL on gitter.
The text was updated successfully, but these errors were encountered: