mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
specify swap file name
This commit is contained in:
parent
d77c3871c5
commit
dd0b012706
1 changed files with 7 additions and 0 deletions
|
|
@ -971,9 +971,16 @@ impl Builder {
|
||||||
} else {
|
} else {
|
||||||
String::new()
|
String::new()
|
||||||
};
|
};
|
||||||
|
let mut swap_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);
|
||||||
|
swap_file.push("target");
|
||||||
|
swap_file.push(self.target.as_ref().expect("target"));
|
||||||
|
swap_file.push(stream);
|
||||||
|
swap_file.push("swap.img");
|
||||||
|
args.push("--swap-name");
|
||||||
|
args.push(swap_file.to_str().unwrap())
|
||||||
}
|
}
|
||||||
|
|
||||||
if memory_spec.len() == 1 {
|
if memory_spec.len() == 1 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue