mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
xtask: fix renode build
This properly sets the environment variable required for UTRA. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
2fdc83b588
commit
5e4c702c02
1 changed files with 5 additions and 3 deletions
|
|
@ -39,8 +39,8 @@ fn main() {
|
|||
fn try_main() -> Result<(), DynError> {
|
||||
let task = env::args().nth(1);
|
||||
match task.as_deref() {
|
||||
Some("renode-image") => image(false)?,
|
||||
Some("renode-image-debug") => image(true)?,
|
||||
Some("renode-image") => renode_image(false)?,
|
||||
Some("renode-image-debug") => renode_image(true)?,
|
||||
Some("run") => run(false)?,
|
||||
Some("hw-image") => build_hw_image(false, env::args().nth(2))?,
|
||||
Some("debug") => run(true)?,
|
||||
|
|
@ -141,7 +141,9 @@ fn build_hw_image(debug: bool, svd: Option<String>) -> Result<(), DynError> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn image(debug: bool) -> Result<(), DynError> {
|
||||
fn renode_image(debug: bool) -> Result<(), DynError> {
|
||||
let path = std::path::Path::new("emulation/renode.svd");
|
||||
std::env::set_var("XOUS_SVD_FILE", path.canonicalize().unwrap());
|
||||
let kernel = build_kernel(debug)?;
|
||||
let mut init = vec![];
|
||||
for pkg in &["shell", "log-server", "graphics-server"] {
|
||||
|
|
|
|||
Loading…
Reference in a new issue