Skip to content

Commit

Permalink
synthesize: support for aarch64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMalka committed Nov 17, 2023
1 parent 36f17a2 commit 2a55538
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootspec/src/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ impl BootSpecV1 {
err: e,
})?;

let kernel_file = generation.join("kernel-modules/bzImage");
let kernel_image_name = match system.as_str() {
"aarch64-linux" => "Image",
_ => "bzImage",
};
let kernel_file = generation.join(format!("kernel-modules/{}", kernel_image_name));
let kernel =
fs::canonicalize(kernel_file.clone()).map_err(|e| SynthesizeError::Canonicalize {
path: kernel_file,
Expand Down

0 comments on commit 2a55538

Please sign in to comment.