kernel: add kmod-crypto-ipsec kmod-crypto-ipsec bundles some otherwise unprovided...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 3 May 2011 21:22:43 +0000 (21:22 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 3 May 2011 21:22:43 +0000 (21:22 +0000)
Signed-off-by: Lars Hjersted <lars@hjersted.com>
SVN-Revision: 26814

package/kernel/modules/crypto.mk

index 5aa954900d9e92d81dd86e1e0946b816a3b33af6..f31331e326125663ac2d7afc1359dd989fb2050f 100644 (file)
@@ -28,6 +28,13 @@ CRYPTOMGR_MODULES = \
        MANAGER2=cryptomgr \
        BLKCIPHER2=crypto_blkcipher
 
+CRYPTOIPSEC_MODULES = \
+       WORKQUEUE=crypto_wq \
+       RNG2=rng \
+       RNG2=krng \
+       BLKCIPHER2=eseqiv \
+       BLKCIPHER2=chainiv
+
 crypto_confvar=CONFIG_CRYPTO_$(word 1,$(subst =,$(space),$(1)))
 crypto_file=$(if $(findstring y,$($(call crypto_confvar,$(1)))),,$(LINUX_DIR)/crypto/$(word 2,$(subst =,$(space),$(1))).ko)
 crypto_name=$(if $(findstring y,$($(call crypto_confvar,$(1)))),,$(word 2,$(subst =,$(space),$(1))))
@@ -108,6 +115,15 @@ define KernelPackage/crypto-iv
 endef
 $(eval $(call KernelPackage,crypto-iv))
 
+define KernelPackage/crypto-ipsec
+  TITLE:=IPSEC CryptoAPI modules
+  KCONFIG:=$(foreach mod,$(CRYPTOIPSEC_MODULES),$(call crypto_confvar,$(mod)))
+  FILES:=$(foreach mod,$(CRYPTOIPSEC_MODULES),$(call crypto_file,$(mod)))
+  AUTOLOAD:=$(call AutoLoad,09,$(foreach mod,$(CRYPTOIPSEC_MODULES),$(call crypto_name,$(mod))))
+  $(call AddDepends/crypto)
+endef
+$(eval $(call KernelPackage,crypto-ipsec))
+
 define KernelPackage/crypto-hw-padlock
   TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
   DEPENDS:=+kmod-crypto-aes