1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-20 03:41:53 +02:00

[package] kernel: cleanup crypto stuff and fix module names on 2.4

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19058 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2010-01-06 18:50:38 +00:00
parent 4217467a1a
commit ea2e68a648

View File

@ -14,35 +14,22 @@ CRYPTO_MENU:=Cryptographic API modules
# - sha1 > sha1_generic (2.6.24) # - sha1 > sha1_generic (2.6.24)
# - sha256 > sha256_generic (2.6.24) # - sha256 > sha256_generic (2.6.24)
# - sha512 > sha512_generic (2.6.26) # - sha512 > sha512_generic (2.6.26)
CRYPTO_GENERIC:=_generic ifneq ($(CONFIG_LINUX_2_6),)
AES_SUFFIX:=$(CRYPTO_GENERIC) CRYPTO_GENERIC:=_generic
DES_SUFFIX:=$(CRYPTO_GENERIC) AES_SUFFIX:=$(CRYPTO_GENERIC)
SHA1_SUFFIX:=$(CRYPTO_GENERIC) DES_SUFFIX:=$(CRYPTO_GENERIC)
SHA256_SUFFIX:=$(CRYPTO_GENERIC) SHA1_SUFFIX:=$(CRYPTO_GENERIC)
SHA512_SUFFIX:=$(CRYPTO_GENERIC) SHA256_SUFFIX:=$(CRYPTO_GENERIC)
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.25)),1) SHA512_SUFFIX:=$(CRYPTO_GENERIC)
CRYPTO_PREFIX:=crypto_
BLKCIPHER_PREFIX:=$(CRYPTO_PREFIX)
endif
AEAD_CONF:=AEAD
MANAGER_CONF:=MANAGER
BLKCIPHER_CONF:=BLKCIPHER
HASH_CONF:=HASH
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.30)),1)
CRYPTO_MODULE_PCOMPRESS:=PCOMP=pcompress
AEAD_CONF:=AEAD2
MANAGER_CONF:=MANAGER2
BLKCIPHER_CONF:=BLKCIPHER2
HASH_CONF:=HASH2
endif endif
CRYPTO_MODULES = \ CRYPTO_MODULES = \
ALGAPI=crypto_algapi \ ALGAPI=crypto_algapi \
$(AEAD_CONF)=aead \ AEAD2=aead \
$(CRYPTO_MODULE_PCOMPRESS) \ PCOMP=pcompress \
$(BLKCIPHER_CONF)=$(BLKCIPHER_PREFIX)blkcipher \ BLKCIPHER2=crypto_blkcipher \
$(HASH_CONF)=crypto_hash \ HASH2=crypto_hash \
$(MANAGER_CONF)=cryptomgr \ MANAGER2=cryptomgr \
CBC=cbc \ CBC=cbc \
ECB=ecb \ ECB=ecb \
DEFLATE=deflate DEFLATE=deflate