Skip to content

Commit

Permalink
add hosted-baosec to utra platform recognition.
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Feb 20, 2025
1 parent 5ffacf6 commit a3b918e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions utralib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 3 additions & 3 deletions utralib/build.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit a3b918e

Please sign in to comment.