mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add apps to debug hosted mode flow
This commit is contained in:
parent
32c3f03609
commit
af52f4ae3c
1 changed files with 16 additions and 1 deletions
|
|
@ -213,6 +213,22 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
generate_app_menus(&apps);
|
generate_app_menus(&apps);
|
||||||
run(false, &pkgs, None)?
|
run(false, &pkgs, None)?
|
||||||
},
|
},
|
||||||
|
Some("debug") => {
|
||||||
|
let mut args = env::args();
|
||||||
|
args.nth(1);
|
||||||
|
let mut pkgs = hw_pkgs.to_vec();
|
||||||
|
let mut apps: Vec<String> = args.collect();
|
||||||
|
if apps.len() == 0 { // add the standard demo apps if none are specified
|
||||||
|
println!("No apps specified, adding default apps...");
|
||||||
|
apps.push("ball".to_string());
|
||||||
|
apps.push("repl".to_string());
|
||||||
|
}
|
||||||
|
for app in &apps {
|
||||||
|
pkgs.push(app);
|
||||||
|
}
|
||||||
|
generate_app_menus(&apps);
|
||||||
|
run(true, &hw_pkgs, None)?
|
||||||
|
},
|
||||||
Some("app-image") => {
|
Some("app-image") => {
|
||||||
let mut args = env::args();
|
let mut args = env::args();
|
||||||
args.nth(1);
|
args.nth(1);
|
||||||
|
|
@ -318,7 +334,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
Some("sr-test") => {
|
Some("sr-test") => {
|
||||||
build_hw_image(false, env::args().nth(2), &sr_pkgs, lkey, kkey, None, &[])?
|
build_hw_image(false, env::args().nth(2), &sr_pkgs, lkey, kkey, None, &[])?
|
||||||
}
|
}
|
||||||
Some("debug") => run(true, &hw_pkgs, None)?,
|
|
||||||
Some("burn-kernel") => update_usb(true, false, false, false)?,
|
Some("burn-kernel") => update_usb(true, false, false, false)?,
|
||||||
Some("burn-loader") => update_usb(false, true, false, false)?,
|
Some("burn-loader") => update_usb(false, true, false, false)?,
|
||||||
Some("nuke-soc") => update_usb(false, false, true, false)?,
|
Some("nuke-soc") => update_usb(false, false, true, false)?,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue