diff --git a/fs/squashfs/Config.in b/fs/squashfs/Config.in index 817909d62..ca9ddb221 100644 --- a/fs/squashfs/Config.in +++ b/fs/squashfs/Config.in @@ -15,6 +15,9 @@ choice config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP bool "gzip" +config BR2_TARGET_ROOTFS_SQUASHFS4_LZ4 + bool "lz4" + config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA bool "lzma" diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk index eb5fc3e73..446906f10 100644 --- a/fs/squashfs/squashfs.mk +++ b/fs/squashfs/squashfs.mk @@ -6,6 +6,9 @@ ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs +ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y) +ROOTFS_SQUASHFS_ARGS += -comp lz4 +else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y) ROOTFS_SQUASHFS_ARGS += -comp lzo else @@ -19,6 +22,7 @@ ROOTFS_SQUASHFS_ARGS += -comp gzip endif endif endif +endif define ROOTFS_SQUASHFS_CMD $(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $@ -noappend \