aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2020-10-27 09:42:31 +0000
committerPaul Spooren <mail@aparcar.org>2020-12-06 08:56:59 -1000
commite273c1715baacca25262d8b997258098e02a616d (patch)
tree221189fa9c23e2b680777a5b603c56b755dbe1b9 /package/kernel/linux
parentce5bcff304e474d604ac0e25de7b6b124f764351 (diff)
downloadupstream-e273c1715baacca25262d8b997258098e02a616d.tar.gz
upstream-e273c1715baacca25262d8b997258098e02a616d.tar.bz2
upstream-e273c1715baacca25262d8b997258098e02a616d.zip
kernel: kmod-lib-zstd: enable crypto API support
Zstd is supported by the crypto API since Linux 4.18. Enable this feature and reveal the package in the configuration section, so the user can select it. This allows zstd to be used as a compression algorithm in zram, for example. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'package/kernel/linux')
-rw-r--r--package/kernel/linux/modules/lib.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk
index 43d3ca5538..9a341932bd 100644
--- a/package/kernel/linux/modules/lib.mk
+++ b/package/kernel/linux/modules/lib.mk
@@ -124,16 +124,18 @@ $(eval $(call KernelPackage,lib-lzo))
define KernelPackage/lib-zstd
SUBMENU:=$(LIB_MENU)
TITLE:=ZSTD support
+ DEPENDS:=+kmod-crypto-acompress
KCONFIG:= \
+ CONFIG_CRYPTO_ZSTD \
CONFIG_ZSTD_COMPRESS \
CONFIG_ZSTD_DECOMPRESS \
CONFIG_XXHASH
- HIDDEN:=1
FILES:= \
+ $(LINUX_DIR)/crypto/zstd.ko \
$(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)
+ AUTOLOAD:=$(call AutoProbe,xxhash zstd zstd_compress zstd_decompress)
endef
define KernelPackage/lib-zstd/description