Skip to content

Commit

Permalink
crates/private/meta: Fix cross-platform build
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 7, 2024
1 parent 7bd508d commit dc050d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/private/meta/Cargo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ mk {
sel4-one-ref-cell
sel4-panicking
sel4-panicking-env
sel4-reset
sel4-shared-ring-buffer
sel4-shared-ring-buffer-block-io
sel4-shared-ring-buffer-block-io-types
Expand Down Expand Up @@ -64,6 +63,11 @@ mk {
target."cfg(not(target_thread_local))".dependencies = {
sel4 = localCrates.sel4 // { features = [ "single-threaded" ]; };
};
target."cfg(target_arch = \"aarch64\")".dependencies = {
inherit (localCrates)
sel4-reset
;
};
target."cfg(not(target_arch = \"x86_64\"))".dependencies = {
sel4-platform-info = localCrates.sel4-platform-info // { optional = true; };
};
Expand Down
4 changes: 3 additions & 1 deletion crates/private/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ sel4-panicking = { path = "../../sel4-panicking" }
sel4-panicking-env = { path = "../../sel4-panicking/env" }
sel4-pl011-driver = { path = "../../drivers/pl011" }
sel4-pl031-driver = { path = "../../drivers/pl031" }
sel4-reset = { path = "../../sel4-reset" }
sel4-root-task = { path = "../../sel4-root-task", features = ["full"], optional = true }
sel4-shared-ring-buffer = { path = "../../sel4-shared-ring-buffer" }
sel4-shared-ring-buffer-block-io = { path = "../../sel4-shared-ring-buffer/block-io" }
Expand All @@ -73,3 +72,6 @@ sel4-platform-info = { path = "../../sel4-platform-info", optional = true }

[target."cfg(not(target_thread_local))".dependencies]
sel4 = { path = "../../sel4", features = ["single-threaded"] }

[target."cfg(target_arch = \"aarch64\")".dependencies]
sel4-reset = { path = "../../sel4-reset" }
7 changes: 7 additions & 0 deletions crates/private/meta/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,14 @@ definitely! {
sel4_one_ref_cell
sel4_panicking
sel4_panicking_env
}

maybe! {
#[cfg(target_arch = "aarch64")]
sel4_reset
}

definitely! {
sel4_shared_ring_buffer
sel4_shared_ring_buffer_block_io
sel4_shared_ring_buffer_block_io_types
Expand Down

0 comments on commit dc050d5

Please sign in to comment.