aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules/lib.mk
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2017-11-12 22:00:20 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2017-12-16 22:12:32 +0100
commit00b5df832f8876ebb4f239b8df38e7425ddc2565 (patch)
tree6be5c836133219b3e7fa171d53dceec3a45c7181 /package/kernel/linux/modules/lib.mk
parent38be62b97ecd313b725f1165a4ffedf166095c06 (diff)
downloadupstream-00b5df832f8876ebb4f239b8df38e7425ddc2565.tar.gz
upstream-00b5df832f8876ebb4f239b8df38e7425ddc2565.tar.bz2
upstream-00b5df832f8876ebb4f239b8df38e7425ddc2565.zip
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@hauke-m.de>
Diffstat (limited to 'package/kernel/linux/modules/lib.mk')
-rw-r--r--package/kernel/linux/modules/lib.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk
index 28770e3d5b..c40e33320c 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