mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add app generalization to xtask renode commands
This commit is contained in:
parent
4192c2105f
commit
396b9e134a
1 changed files with 26 additions and 2 deletions
|
|
@ -166,11 +166,35 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let kkey = args.nth(4);
|
||||
match task.as_deref() {
|
||||
Some("renode-image") => {
|
||||
generate_app_menus(&vec!["ball".to_string()]);
|
||||
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);
|
||||
renode_image(false, &hw_pkgs, &[])?
|
||||
},
|
||||
Some("renode-test") => {
|
||||
generate_app_menus(&vec!["ball".to_string()]);
|
||||
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);
|
||||
renode_image(false, &cbtest_pkgs, &[])?
|
||||
},
|
||||
Some("libstd-test") => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue