summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorBruno Thomsen <bruno.thomsen@gmail.com>2020-07-24 17:51:01 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-07-30 12:10:35 +0200
commit32df99ca6d0b839a825c15319af4c010f93f265d (patch)
treeb862e45b5635353e1ffa2f1efb60667b4f646b13 /platforms
parent858f11d021da21819dc3a069e1b38b8cec91f0c6 (diff)
downloadptxdist-32df99ca6d0b839a825c15319af4c010f93f265d.tar.gz
ptxdist-32df99ca6d0b839a825c15319af4c010f93f265d.tar.xz
image-root-squashfs: add zstd compression option
Set block size and compression level parameters for optimal result by default. BLOCK_SIZE="1M" EXTRA_ARGS="-Xcompression-level 22" It's still very fast on an ordinary laptop. Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com> Message-Id: <20200724155103.6374-3-bruno.thomsen@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/image-root-squashfs.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/platforms/image-root-squashfs.in b/platforms/image-root-squashfs.in
index 5f9368770..98aae9c1c 100644
--- a/platforms/image-root-squashfs.in
+++ b/platforms/image-root-squashfs.in
@@ -4,6 +4,7 @@ menuconfig IMAGE_ROOT_SQUASHFS
tristate
select HOST_GENIMAGE
select HOST_SQUASHFS_TOOLS
+ select HOST_SQUASHFS_TOOLS_ZSTD_SUPPORT if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_ZSTD
select IMAGE_ROOT_TGZ
prompt "Generate images/root.squashfs "
help
@@ -45,6 +46,11 @@ choice
help
Select your preferred compression mode.
+ config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_ZSTD
+ bool "zstd"
+ help
+ Select your preferred compression mode.
+
endchoice
config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE
@@ -54,10 +60,12 @@ config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE
default "lzo" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_LZO
default "lz4" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_LZ4
default "xz" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_XZ
+ default "zstd" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_ZSTD
config IMAGE_ROOT_SQUASHFS_BLOCK_SIZE
string
- default "128k"
+ default "128k" if !IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_ZSTD
+ default "1M" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_ZSTD
prompt "Block size"
help
This allows the compression data block size to be selected, both "K" and "M"
@@ -65,6 +73,8 @@ config IMAGE_ROOT_SQUASHFS_BLOCK_SIZE
config IMAGE_ROOT_SQUASHFS_EXTRA_ARGS
string
+ default "" if !IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_ZSTD
+ default "-Xcompression-level 22" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_ZSTD
prompt "extra arguments passed to mksquashfs"
help
You can add extra arguments for mksquashfs here