This patch adds a missing dependency of the hifn_795x module from
CONFIG_HW_RANDOM in the kernel config. It cures the error:

hifn_795x: Unknown symbol hwrng_unregister
hifn_795x: Unknown symbol hwrng_register

on module load.

see https://forum.openwrt.org/viewtopic.php?pid=102774#p102774

Signed-off-by: Joerg Albert <[email protected]>
---

diff --git a/package/kernel/modules/crypto.mk b/package/kernel/modules/crypto.mk
index 879fa96..a068964 100644
--- a/package/kernel/modules/crypto.mk
+++ b/package/kernel/modules/crypto.mk
@@ -97,6 +97,7 @@ $(call KernelPackage/crypto/Depends,+kmod-crypto-des 
@!TARGET_ubicom32)
   TITLE:=HIFN 795x crypto accelerator
   KCONFIG:= \
        CONFIG_CRYPTO_HW=y \
+       CONFIG_HW_RANDOM=y \
        CONFIG_CRYPTO_DEV_HIFN_795X \
        CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y
   FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.$(LINUX_KMOD_SUFFIX)



_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to