From 124a149b7d139b07ca97c2c080bf7b48b3974e39 Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Mon, 16 Apr 2018 21:39:51 +0200 Subject: [PATCH] fs/squashfs: add zstd support Signed-off-by: Peter Seiderer Reviewed-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- fs/squashfs/Config.in | 3 +++ fs/squashfs/squashfs.mk | 2 ++ 2 files changed, 5 insertions(+) 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