mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
cleanup dependencies to allow for hosted builds
This commit is contained in:
parent
4251686c1f
commit
5d288ec9a8
2 changed files with 6 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ xous-ipc = "0.10.6"
|
|||
num-derive = { version = "0.4.2", default-features = false }
|
||||
num-traits = { version = "0.2.14", default-features = false }
|
||||
log = "0.4.14"
|
||||
loader = { path = "../../loader", features = ["swap"] }
|
||||
loader = { path = "../../loader", features = ["swap"], optional = true }
|
||||
aes-gcm-siv = { version = "0.11.1", default-features = false, features = [
|
||||
"aes",
|
||||
] }
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
#[cfg(feature = "cramium-soc")]
|
||||
use cramium_hal::board::SPINOR_ERASE_SIZE;
|
||||
#[cfg(any(feature = "precursor", feature = "renode"))]
|
||||
use precursor_hal::board::SPINOR_ERASE_SIZE;
|
||||
|
||||
pub const PAGE_SIZE: usize = xous::arch::PAGE_SIZE;
|
||||
|
||||
/// userspace swapper -> kernel ABI
|
||||
|
|
@ -116,7 +121,6 @@ impl Swapper {
|
|||
use core::sync::atomic::{AtomicU32, Ordering};
|
||||
use std::num::NonZero;
|
||||
|
||||
use cramium_hal::board::SPINOR_ERASE_SIZE;
|
||||
use num_traits::ToPrimitive;
|
||||
use xous::{MemoryMessage, MemoryRange};
|
||||
static REFCOUNT: AtomicU32 = AtomicU32::new(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue