From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jw7pj-0005Cn-HY for ptxdist@pengutronix.de; Thu, 16 Jul 2020 19:38:11 +0200 Received: by mail-ej1-x644.google.com with SMTP id a1so7463375ejg.12 for ; Thu, 16 Jul 2020 10:38:11 -0700 (PDT) From: Bruno Thomsen Date: Thu, 16 Jul 2020 19:38:02 +0200 Message-Id: <20200716173805.7467-2-bruno.thomsen@gmail.com> In-Reply-To: <20200716173805.7467-1-bruno.thomsen@gmail.com> References: <20200716173805.7467-1-bruno.thomsen@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 2/5] image-root-squashfs: add zstd compression option List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Bruno Thomsen , bth@kamstrup.com 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 --- platforms/image-root-squashfs.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/platforms/image-root-squashfs.in b/platforms/image-root-squashfs.in index 5f9368770..f3645682e 100644 --- a/platforms/image-root-squashfs.in +++ b/platforms/image-root-squashfs.in @@ -45,6 +45,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 +59,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 +72,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 -- 2.26.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de