aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-26 11:56:16 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-26 11:56:16 +0000
commit2c0a35461ac450d3b5cc3a24a7e60f3eb52e1148 (patch)
tree2a9f48bdc79000e30f17e8b9b39fe22b362971fc
parentdafe241dd0475a247b750ceaeda221ec6e53c379 (diff)
downloadmaster-187ad058-2c0a35461ac450d3b5cc3a24a7e60f3eb52e1148.tar.gz
master-187ad058-2c0a35461ac450d3b5cc3a24a7e60f3eb52e1148.tar.bz2
master-187ad058-2c0a35461ac450d3b5cc3a24a7e60f3eb52e1148.zip
modules: crypto-rng changes additions for kernel 4.3
Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47276 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/linux/modules/crypto.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index aa72ee426d..20fc858943 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -101,15 +101,25 @@ $(eval $(call KernelPackage,crypto-wq))
define KernelPackage/crypto-rng
TITLE:=CryptoAPI random number generation
KCONFIG:=CONFIG_CRYPTO_RNG2
- FILES:= \
- $(LINUX_DIR)/crypto/rng.ko \
- $(LINUX_DIR)/crypto/krng.ko
+ FILES:=$(LINUX_DIR)/crypto/rng.ko
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,4.2.0)),1)
+ FILES+=$(LINUX_DIR)/crypto/krng.ko
+endif
AUTOLOAD:=$(call AutoLoad,09,rng krng)
$(call AddDepends/crypto)
endef
$(eval $(call KernelPackage,crypto-rng))
+define KernelPackage/crypto-rng-jitterentropy
+ TITLE:=Jitterentropy Non-Deterministic Random Number Generator
+ KCONFIG:=CONFIG_CRYPTO_JITTERENTROPY
+ FILES:= $(LINUX_DIR)/crypto/jitterentropy_rng.ko
+ AUTOLOAD:=$(call AutoLoad,10,jitterentropy-rng)
+ $(call AddDepends/crypto)
+endef
+
+$(eval $(call KernelPackage,crypto-rng-jitterentropy))
define KernelPackage/crypto-iv
TITLE:=CryptoAPI initialization vectors