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
Compiling bootloader v0.10.6 (/home/patchmixolydic/.cargo/registry/src/github.com-1ecc6299db9ec823/bootloader-0.10.6)
error: no bootloader dependency in /home/patchmixolydic/Programming/Rust/Spinel/Cargo.toml
The `--kernel-manifest` path should point to the `Cargo.toml` of the kernel.
--> /home/patchmixolydic/.cargo/registry/src/github.com-1ecc6299db9ec823/bootloader-0.10.6/target/x86_64-unknown-uefi/release/build/bootloader-b9ead764961ec1c9/out/bootloader_config.rs:1:81
|
1 | ... = compile_error ! ("no bootloader dependency in /home/patchmixolydic/Programming/Rust/Spinel/Cargo.toml\n\n The `--kernel-manifest` path should point to the `Cargo.toml` of the kernel.") ...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is strange since my kernel does have a bootloader dependency. The source of this error is this check, which looks for the dependency in the [dependencies] section:
Normally this would work, but this misses the case where bootloader is a target-dependent dependency. Indeed, that's exactly what my project's Cargo.toml does:
Now `cargo build` can be used! (`cargo run` needs fixes for the new
`bootloader` build process, see rust-osdev/bootloader#189)
PatchMixolydic
changed the title
`cargo builder doesn't work when bootloader is declared as a target-dependent dependencycargo builder doesn't work when bootloader is declared as a target-dependent dependency
Jul 31, 2021
PatchMixolydic
changed the title
cargo builder doesn't work when bootloader is declared as a target-dependent dependencycargo builder can't detect bootloader when it is declared as a target-dependent dependency
Jul 31, 2021
While trying to migrate an old project to
bootloader
0.10, I ran the following command:which resulted in this error:
This is strange since my kernel does have a
bootloader
dependency. The source of this error is this check, which looks for the dependency in the[dependencies]
section:bootloader/build.rs
Lines 243 to 246 in c09f94f
Normally this would work, but this misses the case where
bootloader
is a target-dependent dependency. Indeed, that's exactly what my project's Cargo.toml does:Ideally, this would be supported to allow for multi-platform kernels.
The text was updated successfully, but these errors were encountered: