xtask: fix new path to soc svd file

The soc.svd file has now moved under `emulation/soc/` instead of just
under `emulation/`, due to the fact that we now have an EC to emulate as
well.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-04-26 09:29:54 +08:00
parent 760b45be38
commit fe86d5b9e3

View file

@ -160,7 +160,7 @@ fn build_hw_image(debug: bool, svd: Option<String>, packages: &[&str], extra_arg
// 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"))?;
// std::fs::copy(path, std::path::Path::new("emulation/soc/renode.svd"))?;
let kernel = build_kernel(debug)?;
let mut init = vec![];
@ -217,7 +217,7 @@ fn build_hw_image(debug: bool, svd: Option<String>, packages: &[&str], extra_arg
}
fn renode_image(debug: bool, packages: &[&str]) -> Result<(), DynError> {
let path = std::path::Path::new("emulation/renode.svd");
let path = std::path::Path::new("emulation/soc/renode.svd");
std::env::set_var("XOUS_SVD_FILE", path.canonicalize().unwrap());
let kernel = build_kernel(debug)?;
let mut init = vec![];
@ -233,7 +233,7 @@ fn renode_image(debug: bool, packages: &[&str]) -> Result<(), DynError> {
&kernel,
&init,
debug,
MemorySpec::SvdFile("emulation/renode.svd".into()),
MemorySpec::SvdFile("emulation/soc/renode.svd".into()),
)?;
Ok(())