copy svd file to renode emulation every time on build

This commit is contained in:
bunnie 2021-01-06 22:08:29 +08:00
parent 0ad4377586
commit dcdd33e594

View file

@ -74,6 +74,8 @@ fn build_hw_image(debug: bool, svd: Option<String>) -> Result<(), DynError> {
// Tools use this environment variable to know when to rebuild the UTRA crate.
std::env::set_var("XOUS_SVD_FILE", path.canonicalize().unwrap());
std::fs::copy(path, std::path::Path::new("emulation/renode.svd"))?;
let kernel = build_kernel(debug)?;
let mut init = vec![];
for pkg in &[