forked from brl/citadel-tools
Add an option to choose to build a compressed image or not
This commit is contained in:
parent
6e5ec2ec1b
commit
41179a720d
@ -14,6 +14,8 @@ pub struct BuildConfig {
|
||||
version: usize,
|
||||
timestamp: String,
|
||||
source: String,
|
||||
#[serde(default)]
|
||||
compress: bool,
|
||||
#[serde(rename = "kernel-version")]
|
||||
kernel_version: Option<String>,
|
||||
#[serde(rename = "kernel-id")]
|
||||
@ -110,4 +112,8 @@ impl BuildConfig {
|
||||
pub fn image_type(&self) -> &str {
|
||||
&self.image_type
|
||||
}
|
||||
|
||||
pub fn compress(&self) -> bool {
|
||||
self.compress
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user