mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
xtask: add "debug" command
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
81dad453cb
commit
bb4efbe531
1 changed files with 5 additions and 3 deletions
|
|
@ -34,7 +34,8 @@ fn try_main() -> Result<(), DynError> {
|
||||||
let task = env::args().nth(1);
|
let task = env::args().nth(1);
|
||||||
match task.as_deref() {
|
match task.as_deref() {
|
||||||
Some("renode-image") => image()?,
|
Some("renode-image") => image()?,
|
||||||
Some("run") => run()?,
|
Some("run") => run(false)?,
|
||||||
|
Some("debug") => run(true)?,
|
||||||
_ => print_help(),
|
_ => print_help(),
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
@ -44,6 +45,8 @@ fn print_help() {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"Tasks:
|
"Tasks:
|
||||||
renode-image builds a test image for renode
|
renode-image builds a test image for renode
|
||||||
|
run runs a release build using a hosted environment
|
||||||
|
debug runs a debug build using a hosted environment
|
||||||
"
|
"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -62,8 +65,7 @@ fn image() -> Result<(), DynError> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run() -> Result<(), DynError> {
|
fn run(debug: bool) -> Result<(), DynError> {
|
||||||
let debug = false;
|
|
||||||
let stream = if debug { "debug" } else { "release" };
|
let stream = if debug { "debug" } else { "release" };
|
||||||
let init = ["shell", "log-server", "graphics-server"];
|
let init = ["shell", "log-server", "graphics-server"];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue