add dvt target

resurrecting some old hardware as an efuse testing target;
new hardware is too precious at the moment given the ridiculous
shortage of FPGAs on the market.
This commit is contained in:
bunnie 2022-10-18 21:47:16 +08:00
parent 8e05925cfa
commit 74fe8c989c
7 changed files with 13280 additions and 1 deletions

View file

@ -32,6 +32,7 @@ std = []
# Maintainer note: add checks in build.rs to ensure only one is selected.
precursor-c809403 = []
precursor-c809403-perflib = []
precursor-2753c12-dvt = []
# The SVD gitrev as specified above is only invoked to track fine-grained
# changes between target revisions. Below is the overall target switch,

View file

@ -71,7 +71,7 @@ fn main() {
allow_single_target_feature!("precursor", "hosted", "renode");
#[cfg(feature="precursor")]
allow_single_gitrev_feature!("precursor-c809403", "precursor-c809403-perflib");
allow_single_gitrev_feature!("precursor-c809403", "precursor-c809403-perflib", "precursor-2753c12-dvt");
// ----- select an SVD file based on a specific revision -----
#[cfg(feature="precursor-c809403")]
@ -89,6 +89,11 @@ fn main() {
#[cfg(feature="renode")]
let generated_filename = "src/generated/renode.rs";
#[cfg(feature="precursor-2753c12-dvt")]
let svd_filename = "precursor/soc-dvt-2753c12.svd";
#[cfg(feature="precursor-2753c12-dvt")]
let generated_filename = "src/generated/precursor_dvt_2753c12.rs";
// ----- control file generation and rebuild sequence -----
// check and see if the configuration has changed since the last build. This should be
// passed by the build system (e.g. xtask) if the feature is used.

File diff suppressed because it is too large Load diff

Binary file not shown.

View file

@ -12,6 +12,11 @@ mod precursor_perf_c809403;
#[cfg(feature="precursor-c809403-perflib")]
pub use precursor_perf_c809403::*;
#[cfg(feature="precursor-2753c12-dvt")]
mod precursor_dvt_2753c12;
#[cfg(feature="precursor-2753c12-dvt")]
pub use precursor_dvt_2753c12::*;
#[cfg(feature="renode")]
mod renode;
#[cfg(feature="renode")]

File diff suppressed because it is too large Load diff

View file

@ -285,6 +285,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.add_feature("perfcounter")
.add_kernel_feature("v2p");
}
Some("dvt-image") => {
// this image targets a mostly deprecated DVT hardware generation. The purpose of it is to re-use some
// of the now-defunct hardware for eFuse code testing, especially since FPGAs have gotten very scarce.
// Once the eFuse path is validated, we could remove this target.
let mut services: Vec<String> = user_pkgs
.into_iter()
.map(String::from).collect();
services.retain(|x| x != "codec"); // codec is not compatible with DVT boards
builder.target_precursor("2753c12-dvt")
.add_services(&services)
.add_apps(&get_cratespecs());
}
Some("tts") => {
builder.target_precursor(PRECURSOR_SOC_VERSION);