From dcdd33e594391633dffe1d8a35b32894ca120969 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 6 Jan 2021 22:08:29 +0800 Subject: [PATCH] copy svd file to renode emulation every time on build --- xtask/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xtask/src/main.rs b/xtask/src/main.rs index fa2398e83..ae4e71852 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -74,6 +74,8 @@ fn build_hw_image(debug: bool, svd: Option) -> 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 &[