Changeset 19058


Ignore:
Timestamp:
2010-01-06T19:50:38+01:00 (8 years ago)
Author:
nico
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/modules/crypto.mk

    r18957 r19058  
    1515#  - sha256 > sha256_generic (2.6.24) 
    1616#  - sha512 > sha512_generic (2.6.26) 
    17 CRYPTO_GENERIC:=_generic 
    18 AES_SUFFIX:=$(CRYPTO_GENERIC) 
    19 DES_SUFFIX:=$(CRYPTO_GENERIC) 
    20 SHA1_SUFFIX:=$(CRYPTO_GENERIC) 
    21 SHA256_SUFFIX:=$(CRYPTO_GENERIC) 
    22 SHA512_SUFFIX:=$(CRYPTO_GENERIC) 
    23 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.25)),1) 
    24   CRYPTO_PREFIX:=crypto_ 
    25   BLKCIPHER_PREFIX:=$(CRYPTO_PREFIX) 
    26 endif 
    27 AEAD_CONF:=AEAD 
    28 MANAGER_CONF:=MANAGER 
    29 BLKCIPHER_CONF:=BLKCIPHER 
    30 HASH_CONF:=HASH 
    31 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.30)),1) 
    32   CRYPTO_MODULE_PCOMPRESS:=PCOMP=pcompress 
    33   AEAD_CONF:=AEAD2 
    34   MANAGER_CONF:=MANAGER2 
    35   BLKCIPHER_CONF:=BLKCIPHER2 
    36   HASH_CONF:=HASH2 
     17ifneq ($(CONFIG_LINUX_2_6),) 
     18  CRYPTO_GENERIC:=_generic 
     19  AES_SUFFIX:=$(CRYPTO_GENERIC) 
     20  DES_SUFFIX:=$(CRYPTO_GENERIC) 
     21  SHA1_SUFFIX:=$(CRYPTO_GENERIC) 
     22  SHA256_SUFFIX:=$(CRYPTO_GENERIC) 
     23  SHA512_SUFFIX:=$(CRYPTO_GENERIC) 
    3724endif 
    3825 
    3926CRYPTO_MODULES = \ 
    4027        ALGAPI=crypto_algapi \ 
    41         $(AEAD_CONF)=aead \ 
    42         $(CRYPTO_MODULE_PCOMPRESS) \ 
    43         $(BLKCIPHER_CONF)=$(BLKCIPHER_PREFIX)blkcipher \ 
    44         $(HASH_CONF)=crypto_hash \ 
    45         $(MANAGER_CONF)=cryptomgr \ 
     28        AEAD2=aead \ 
     29        PCOMP=pcompress \ 
     30        BLKCIPHER2=crypto_blkcipher \ 
     31        HASH2=crypto_hash \ 
     32        MANAGER2=cryptomgr \ 
    4633        CBC=cbc \ 
    4734        ECB=ecb \ 
Note: See TracChangeset for help on using the changeset viewer.