From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jw7Zi-0003Lk-S2 for ptxdist@pengutronix.de; Thu, 16 Jul 2020 19:21:39 +0200 Received: by mail-ej1-x642.google.com with SMTP id p20so7375551ejd.13 for ; Thu, 16 Jul 2020 10:21:38 -0700 (PDT) From: Bruno Thomsen Date: Thu, 16 Jul 2020 19:21:33 +0200 Message-Id: <20200716172133.4351-1-bruno.thomsen@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] squashfs-tools: add zstd compression support 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 ZSTD_LIBZSTD is needed runtime and ZSTD is needed compile time. Kconfig options has been separated into build and install options, so it's easier to extend with more e.g. compression types. Signed-off-by: Bruno Thomsen --- rules/squashfs-tools.in | 10 ++++++++++ rules/squashfs-tools.make | 1 + 2 files changed, 11 insertions(+) diff --git a/rules/squashfs-tools.in b/rules/squashfs-tools.in index a90153ae1..9e4f48550 100644 --- a/rules/squashfs-tools.in +++ b/rules/squashfs-tools.in @@ -6,6 +6,8 @@ menuconfig SQUASHFS_TOOLS select LIBC_PTHREAD select GCCLIBS_GCC_S select ZLIB + select ZSTD if SQUASHFS_TOOLS_ZSTD_SUPPORT + select ZSTD_LIBZSTD if SQUASHFS_TOOLS_ZSTD_SUPPORT prompt "squashfs-tools " help Squashfs is a highly compressed read-only filesystem for Linux. @@ -16,6 +18,14 @@ menuconfig SQUASHFS_TOOLS if SQUASHFS_TOOLS +comment "build options" + +config SQUASHFS_TOOLS_ZSTD_SUPPORT + bool + prompt "Support Zstandard (zstd) compression" + +comment "install options" + config SQUASHFS_TOOLS_MKSQUASHFS bool prompt "Install mksquashfs" diff --git a/rules/squashfs-tools.make b/rules/squashfs-tools.make index 6afd44ddf..4b9581883 100644 --- a/rules/squashfs-tools.make +++ b/rules/squashfs-tools.make @@ -30,6 +30,7 @@ SQUASHFS_TOOLS_LICENSE := GPL-2.0-or-later SQUASHFS_TOOLS_MAKE_PAR := NO SQUASHFS_TOOLS_MAKE_ENV := \ + ZSTD_SUPPORT=$(call ptx/ifdef, PTXCONF_SQUASHFS_TOOLS_ZSTD_SUPPORT,1,0) \ $(CROSS_ENV) SQUASHFS_TOOLS_INSTALL_OPT := \ base-commit: 9fe5462616de2ce93663f409f471ea83a6d5fbb5 -- 2.26.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de