[OpenWrt-Devel] [PATCH 2/2] kernel/modules: use crc32c_generic.ko instead of crc32c.ko

Daniel Golle daniel at makrotopia.org
Mon Nov 17 09:10:45 EST 2014


Starting from kernel version 3.15, the crc32c module was renamed to
crc32c_generic.

Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 package/kernel/linux/modules/crypto.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index efa69b7..e0a2e27 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -299,8 +299,13 @@ define KernelPackage/crypto-crc32c
   TITLE:=CRC32c CRC module
   DEPENDS:=+kmod-crypto-hash
   KCONFIG:=CONFIG_CRYPTO_CRC32C
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.15.0)),1)
+  FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko
+  AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1)
+else
   FILES:=$(LINUX_DIR)/crypto/crc32c.ko
   AUTOLOAD:=$(call AutoLoad,04,crc32c,1)
+endif
   $(call AddDepends/crypto)
 endef
 
-- 
2.1.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list