mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add free space computation on kernel image generation
This commit is contained in:
parent
bfdea56dff
commit
c297ca5f2e
1 changed files with 6 additions and 0 deletions
|
|
@ -267,6 +267,12 @@ pub fn sign_image(
|
|||
target,
|
||||
);
|
||||
return Err(String::from("Image doesn't fit").into());
|
||||
} else {
|
||||
println!(
|
||||
"=== Kernel is {} bytes: {} bytes free remaining ===",
|
||||
dest_file.len(),
|
||||
target - dest_file.len()
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(dest_file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue