pre-hash sign the kernel image; normal signing for loader image

The loader image uses the original signing method, because changing
that would require us to modify the gateware ROM, which is a huge
pain in the ass, and doesn't buy us anything.

Thus only the kernel signing uses the pre-hash method.
This commit is contained in:
bunnie 2024-01-05 16:14:09 +08:00
parent 259852c1c6
commit d49d46ee0d

View file

@ -108,6 +108,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
&loader_pkey,
matches.is_present("defile"),
&minver,
false
)?;
}
@ -131,6 +132,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
&kernel_pkey,
matches.is_present("defile"),
&minver,
true,
)?;
}
Ok(())