mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add hosted-baosec to utra platform recognition.
This commit is contained in:
parent
5ffacf63f3
commit
a3b918e8c6
2 changed files with 5 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue