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 authored and cole-h committed Nov 17, 2023
1 parent 3e40a1e commit fce3feb
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() {
"x86_64-linux" => "bzImage",
_ => "Image",
};
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 fce3feb

Please sign in to comment.