move the cbc crypto module out of the crypto core and into a separate package - it...
[librecmc/librecmc.git] / package / kernel / modules / crypto.mk
index aaa9d534b226af418ccfec47ed49411d07c4a807..d17e9c6c2cd540a7ccd2110731f82029206ba10b 100644 (file)
@@ -28,7 +28,6 @@ CRYPTO_MODULES = \
        BLKCIPHER2=crypto_blkcipher \
        HASH2=crypto_hash \
        MANAGER2=cryptomgr \
-       CBC=cbc \
        ECB=ecb
 
 crypto_confvar=CONFIG_CRYPTO_$(word 1,$(subst =,$(space),$(1)))
@@ -172,6 +171,16 @@ endef
 
 $(eval $(call KernelPackage,crypto-authenc))
 
+define KernelPackage/crypto-cbc
+  TITLE:=Cipher Block Chaining CryptoAPI module
+  KCONFIG:=CONFIG_CRYPTO_CBC
+  FILES:=$(LINUX_DIR)/crypto/cbc.ko
+  AUTOLOAD:=$(call AutoLoad,09,cbc)
+  $(call AddDepends/crypto)
+endef
+
+$(eval $(call KernelPackage,crypto-cbc))
+
 define KernelPackage/crypto-des
   TITLE:=DES/3DES cipher CryptoAPI module
   KCONFIG:=CONFIG_CRYPTO_DES