[source] kernel: Add kmod-crypto-crc32 (crc32_generic.ko)

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 26 23:34:44 PDT 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/89765693a0808a1a57b17f8faac7510a9dccb509

commit 89765693a0808a1a57b17f8faac7510a9dccb509
Author: Shane Peelar <lookatyouhacker at gmail.com>
AuthorDate: Fri Mar 24 10:44:24 2017 -0400

    kernel: Add kmod-crypto-crc32 (crc32_generic.ko)
    
    This is needed for F2FS support (it depends on crc32_generic,
    not crc32c_generic).
    
    Signed-off-by: Shane Peelar <lookatyouhacker at gmail.com>
---
 package/kernel/linux/modules/crypto.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
index ca18a16..a89d0b7 100644
--- a/package/kernel/linux/modules/crypto.mk
+++ b/package/kernel/linux/modules/crypto.mk
@@ -307,6 +307,17 @@ endef
 
 $(eval $(call KernelPackage,crypto-crc32c))
 
+define KernelPackage/crypto-crc32
+  TITLE:=CRC32 CRC module
+  DEPENDS:=+kmod-crypto-hash
+  KCONFIG:=CONFIG_CRYPTO_CRC32
+  HIDDEN:=1
+  FILES:=$(LINUX_DIR)/crypto/crc32_generic.ko at ge4.9
+  AUTOLOAD:=$(call AutoLoad,04,crc32_generic at ge4.9,1)
+  $(call AddDepends/crypto)
+endef
+
+$(eval $(call KernelPackage,crypto-crc32))
 
 define KernelPackage/crypto-des
   TITLE:=DES/3DES cipher CryptoAPI module



More information about the lede-commits mailing list