mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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,
|
target,
|
||||||
);
|
);
|
||||||
return Err(String::from("Image doesn't fit").into());
|
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)
|
Ok(dest_file)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue