[source] kernel: add kmod-lib-zstd
LEDE Commits
lede-commits at lists.infradead.org
Sat Dec 16 13:18:21 PST 2017
hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/00b5df832f8876ebb4f239b8df38e7425ddc2565
commit 00b5df832f8876ebb4f239b8df38e7425ddc2565
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sun Nov 12 22:00:20 2017 +0100
kernel: add kmod-lib-zstd
In kernel 4.14 kmod-fs-btrfs depends on the zstd compression libraries,
add it to the package system.
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/kernel/linux/modules/fs.mk | 2 +-
package/kernel/linux/modules/lib.mk | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
index 3db633a..1e130dd 100644
--- a/package/kernel/linux/modules/fs.mk
+++ b/package/kernel/linux/modules/fs.mk
@@ -82,7 +82,7 @@ $(eval $(call KernelPackage,fs-autofs4))
define KernelPackage/fs-btrfs
SUBMENU:=$(FS_MENU)
TITLE:=BTRFS filesystem support
- DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib-inflate +kmod-lib-zlib-deflate +kmod-lib-raid6 +kmod-lib-xor
+ DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib-inflate +kmod-lib-zlib-deflate +kmod-lib-raid6 +kmod-lib-xor +LINUX_4_14:kmod-lib-zstd
KCONFIG:=\
CONFIG_BTRFS_FS \
CONFIG_BTRFS_FS_POSIX_ACL=n \
diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk
index 28770e3..c40e333 100644
--- a/package/kernel/linux/modules/lib.mk
+++ b/package/kernel/linux/modules/lib.mk
@@ -120,6 +120,28 @@ endef
$(eval $(call KernelPackage,lib-lzo))
+define KernelPackage/lib-zstd
+ SUBMENU:=$(LIB_MENU)
+ TITLE:=ZSTD support
+ KCONFIG:= \
+ CONFIG_ZSTD_COMPRESS \
+ CONFIG_ZSTD_DECOMPRESS \
+ CONFIG_XXHASH
+ HIDDEN:=1
+ FILES:= \
+ $(LINUX_DIR)/lib/xxhash.ko \
+ $(LINUX_DIR)/lib/zstd/zstd_compress.ko \
+ $(LINUX_DIR)/lib/zstd/zstd_decompress.ko
+ AUTOLOAD:=$(call AutoProbe,xxhash zstd_compress zstd_decompress)
+endef
+
+define KernelPackage/lib-zstd/description
+ Kernel module for ZSTD compression/decompression support
+endef
+
+$(eval $(call KernelPackage,lib-zstd))
+
+
define KernelPackage/lib-lz4
SUBMENU:=$(LIB_MENU)
TITLE:=LZ4 support
More information about the lede-commits
mailing list