mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
add plaintext debug output for swap image
This commit is contained in:
parent
cd140769ac
commit
73aeae480d
1 changed files with 8 additions and 1 deletions
|
|
@ -983,6 +983,7 @@ impl Builder {
|
||||||
String::new()
|
String::new()
|
||||||
};
|
};
|
||||||
let mut swap_file = PathBuf::new();
|
let mut swap_file = PathBuf::new();
|
||||||
|
let mut swap_dbg_file = PathBuf::new();
|
||||||
if self.swap.is_some() {
|
if self.swap.is_some() {
|
||||||
args.push("--swap");
|
args.push("--swap");
|
||||||
args.push(&swap_spec);
|
args.push(&swap_spec);
|
||||||
|
|
@ -991,7 +992,13 @@ impl Builder {
|
||||||
swap_file.push(stream);
|
swap_file.push(stream);
|
||||||
swap_file.push("swap.img");
|
swap_file.push("swap.img");
|
||||||
args.push("--swap-name");
|
args.push("--swap-name");
|
||||||
args.push(swap_file.to_str().unwrap())
|
args.push(swap_file.to_str().unwrap());
|
||||||
|
swap_dbg_file.push("target");
|
||||||
|
swap_dbg_file.push(self.target.as_ref().expect("target"));
|
||||||
|
swap_dbg_file.push(stream);
|
||||||
|
swap_dbg_file.push("swap-debug.img");
|
||||||
|
args.push("--swap-debug-name");
|
||||||
|
args.push(swap_dbg_file.to_str().unwrap());
|
||||||
}
|
}
|
||||||
|
|
||||||
if memory_spec.len() == 1 {
|
if memory_spec.len() == 1 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue