From ea2e0cfbac1db1f919d6c80025ae5b4f06726fa5 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 17 Jul 2023 18:25:18 +0800 Subject: [PATCH] add cramium target to xous-names --- services/xous-names/Cargo.toml | 2 ++ services/xous-names/src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/xous-names/Cargo.toml b/services/xous-names/Cargo.toml index 3490ecdd0..8dd1015c3 100644 --- a/services/xous-names/Cargo.toml +++ b/services/xous-names/Cargo.toml @@ -24,6 +24,8 @@ utralib = {version = "0.1.20", optional = true, default-features = false } [target.'cfg(any(windows,unix))'.dependencies] [features] +cramium-soc = ["utralib/cramium-soc"] +cramium-fpga = ["utralib/cramium-fpga"] precursor = ["utralib/precursor"] hosted = ["utralib/hosted"] renode = ["utralib/renode"] diff --git a/services/xous-names/src/main.rs b/services/xous-names/src/main.rs index 8438edd51..8a9ca7768 100644 --- a/services/xous-names/src/main.rs +++ b/services/xous-names/src/main.rs @@ -46,7 +46,7 @@ enum ConnectSuccess { // AuthenticationRequest } -#[cfg(any(feature="precursor", feature="renode"))] +#[cfg(any(feature="precursor", feature="renode", feature="cramium-fpga", feature="cramium-soc"))] mod implementation { use utralib::generated::*; @@ -83,7 +83,7 @@ mod implementation { } #[cfg(any(not(target_os = "xous"), - not(any(feature="precursor", feature="renode", not(target_os = "xous"))) // default to pass crates.io build + not(any(feature="precursor", feature="renode", feature="cramium-fpga", feature="cramium-soc", not(target_os = "xous"))) // default to pass crates.io build ))] mod implementation { pub struct D11cTimeout {}