mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add --with-jump flag for image creation of cramium target
This commit is contained in:
parent
c407db877e
commit
8746fc5a76
1 changed files with 42 additions and 19 deletions
|
|
@ -865,25 +865,48 @@ impl Builder {
|
||||||
return Err("cargo build failed".into());
|
return Err("cargo build failed".into());
|
||||||
}
|
}
|
||||||
|
|
||||||
let status = Command::new(cargo())
|
let status = if self.utra_target.contains("cramium") {
|
||||||
.current_dir(project_root())
|
Command::new(cargo())
|
||||||
.args([
|
.current_dir(project_root())
|
||||||
"run",
|
.args([
|
||||||
"--package",
|
"run",
|
||||||
"tools",
|
"--package",
|
||||||
"--bin",
|
"tools",
|
||||||
"sign-image",
|
"--bin",
|
||||||
"--",
|
"sign-image",
|
||||||
"--loader-image",
|
"--",
|
||||||
loader_presign.to_str().unwrap(),
|
"--loader-image",
|
||||||
"--loader-key",
|
loader_presign.to_str().unwrap(),
|
||||||
&self.loader_key,
|
"--loader-key",
|
||||||
"--loader-output",
|
&self.loader_key,
|
||||||
loader_bin.to_str().unwrap(),
|
"--loader-output",
|
||||||
"--min-xous-ver",
|
loader_bin.to_str().unwrap(),
|
||||||
&self.min_ver,
|
"--min-xous-ver",
|
||||||
])
|
&self.min_ver,
|
||||||
.status()?;
|
"--with-jump", // cramium target has a jump inserted in the loader sig block
|
||||||
|
])
|
||||||
|
.status()?
|
||||||
|
} else {
|
||||||
|
Command::new(cargo())
|
||||||
|
.current_dir(project_root())
|
||||||
|
.args([
|
||||||
|
"run",
|
||||||
|
"--package",
|
||||||
|
"tools",
|
||||||
|
"--bin",
|
||||||
|
"sign-image",
|
||||||
|
"--",
|
||||||
|
"--loader-image",
|
||||||
|
loader_presign.to_str().unwrap(),
|
||||||
|
"--loader-key",
|
||||||
|
&self.loader_key,
|
||||||
|
"--loader-output",
|
||||||
|
loader_bin.to_str().unwrap(),
|
||||||
|
"--min-xous-ver",
|
||||||
|
&self.min_ver,
|
||||||
|
])
|
||||||
|
.status()?
|
||||||
|
};
|
||||||
if !status.success() {
|
if !status.success() {
|
||||||
return Err("loader image sign failed".into());
|
return Err("loader image sign failed".into());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue