mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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 & FPGA model
|
||||||
cramium-soc = []
|
cramium-soc = []
|
||||||
cramium-fpga = []
|
cramium-fpga = []
|
||||||
|
# Emulation for cramium
|
||||||
|
hosted-baosec = []
|
||||||
|
|
||||||
# Specify a Precusor default so that we can pass packaging CI tests.
|
# Specify a Precusor default so that we can pass packaging CI tests.
|
||||||
default = ["hosted"]
|
default = ["hosted"]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::fs::OpenOptions;
|
use std::fs::OpenOptions;
|
||||||
#[cfg(not(feature = "hosted"))]
|
#[cfg(not(any(feature = "hosted", feature = "hosted-baosec")))]
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
@ -137,7 +137,7 @@ fn main() {
|
||||||
//
|
//
|
||||||
// Debug this using:
|
// Debug this using:
|
||||||
// $env:CARGO_LOG="cargo::core::compiler::fingerprint=info"
|
// $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();
|
let mut svd_files = Vec::new();
|
||||||
for svd in svd_filenames.iter() {
|
for svd in svd_filenames.iter() {
|
||||||
|
|
@ -180,7 +180,7 @@ fn main() {
|
||||||
writeln!(svd_file, "utralib/{}", svd).unwrap();
|
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 svd_path = out_dir().join("../../SVD_PATH");
|
||||||
let mut svd_file = OpenOptions::new().create(true).write(true).truncate(true).open(svd_path).unwrap();
|
let mut svd_file = OpenOptions::new().create(true).write(true).truncate(true).open(svd_path).unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue