diff --git a/utralib/Cargo.toml b/utralib/Cargo.toml index 91c36ad79..749b72a3d 100644 --- a/utralib/Cargo.toml +++ b/utralib/Cargo.toml @@ -50,6 +50,8 @@ atsama5d27 = [] # Cramium SoC & FPGA model cramium-soc = [] cramium-fpga = [] +# Emulation for cramium +hosted-baosec = [] # Specify a Precusor default so that we can pass packaging CI tests. default = ["hosted"] diff --git a/utralib/build.rs b/utralib/build.rs index 46b420778..87d7cc10d 100644 --- a/utralib/build.rs +++ b/utralib/build.rs @@ -1,6 +1,6 @@ use std::env; use std::fs::OpenOptions; -#[cfg(not(feature = "hosted"))] +#[cfg(not(any(feature = "hosted", feature = "hosted-baosec")))] use std::io::Read; use std::io::Write; use std::path::PathBuf; @@ -137,7 +137,7 @@ fn main() { // // Debug this using: // $env:CARGO_LOG="cargo::core::compiler::fingerprint=info" - #[cfg(not(feature = "hosted"))] + #[cfg(not(any(feature = "hosted", feature = "hosted-baosec")))] { let mut svd_files = Vec::new(); for svd in svd_filenames.iter() { @@ -180,7 +180,7 @@ fn main() { writeln!(svd_file, "utralib/{}", svd).unwrap(); } } - #[cfg(feature = "hosted")] + #[cfg(any(feature = "hosted", feature = "hosted-baosec"))] { let svd_path = out_dir().join("../../SVD_PATH"); let mut svd_file = OpenOptions::new().create(true).write(true).truncate(true).open(svd_path).unwrap();