mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[PATCH 1/2] kernel: add kmod-crypto-ipsec
kmod-crypto-ipsec bundles some otherwise unprovided kernel crypto modules that are useful for IPSEC. This is an alternative to breaking these modules out into kmod-crypto-wq (crypto_wq.ko), kmod-crypto-rng (rng.ko and krng.ko), and kmod-crypto-iv (eseqiv.ko and chainiv.ko). Signed-off-by: Lars Hjersted <lars@hjersted.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26814 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -28,6 +28,13 @@ CRYPTOMGR_MODULES = \
|
|||||||
MANAGER2=cryptomgr \
|
MANAGER2=cryptomgr \
|
||||||
BLKCIPHER2=crypto_blkcipher
|
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_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_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))))
|
crypto_name=$(if $(findstring y,$($(call crypto_confvar,$(1)))),,$(word 2,$(subst =,$(space),$(1))))
|
||||||
@@ -108,6 +115,15 @@ define KernelPackage/crypto-iv
|
|||||||
endef
|
endef
|
||||||
$(eval $(call KernelPackage,crypto-iv))
|
$(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
|
define KernelPackage/crypto-hw-padlock
|
||||||
TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
|
TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
|
||||||
DEPENDS:=+kmod-crypto-aes
|
DEPENDS:=+kmod-crypto-aes
|
||||||
|
|||||||
Reference in New Issue
Block a user