aboutsummaryrefslogtreecommitdiff
path: root/fs/squashfs
diff options
context:
space:
mode:
authorGravatar Peter Seiderer <ps.report@gmx.net>2018-04-16 21:39:51 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-25 23:39:04 +0200
commit124a149b7d139b07ca97c2c080bf7b48b3974e39 (patch)
tree7df9184ab23880d5a0b409b58fa91a26894268cb /fs/squashfs
parent4693b6a1e62ef98f45ad307b3a0a18587165073f (diff)
downloadbuildroot-124a149b7d139b07ca97c2c080bf7b48b3974e39.tar.gz
buildroot-124a149b7d139b07ca97c2c080bf7b48b3974e39.tar.bz2
fs/squashfs: add zstd support
Signed-off-by: Peter Seiderer <ps.report@gmx.net> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'fs/squashfs')
-rw-r--r--fs/squashfs/Config.in3
-rw-r--r--fs/squashfs/squashfs.mk2
2 files changed, 5 insertions, 0 deletions
diff --git a/fs/squashfs/Config.in b/fs/squashfs/Config.in
index ca9ddb2218..dde2097cb7 100644
--- a/fs/squashfs/Config.in
+++ b/fs/squashfs/Config.in
@@ -27,5 +27,8 @@ config BR2_TARGET_ROOTFS_SQUASHFS4_LZO
config BR2_TARGET_ROOTFS_SQUASHFS4_XZ
bool "xz"
+config BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD
+ bool "zstd"
+
endchoice
endif
diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk
index 51abd5d7d0..34ab048603 100644
--- a/fs/squashfs/squashfs.mk
+++ b/fs/squashfs/squashfs.mk
@@ -16,6 +16,8 @@ else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
ROOTFS_SQUASHFS_ARGS += -comp lzma
else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_XZ),y)
ROOTFS_SQUASHFS_ARGS += -comp xz
+else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD),y)
+ROOTFS_SQUASHFS_ARGS += -comp zstd
else
ROOTFS_SQUASHFS_ARGS += -comp gzip
endif