From 67f10747308d9adca469b727296994c16699707f Mon Sep 17 00:00:00 2001
From: florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Tue, 6 Jan 2009 11:28:00 +0000
Subject: Prevent crypto aead from failing to build with 2.6.24 targets (#4426)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13882 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 target/linux/generic-2.6/config-2.6.24             |  1 +
 .../patches-2.6.24/975-crypto_kconfig_hacks.patch  | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 target/linux/generic-2.6/patches-2.6.24/975-crypto_kconfig_hacks.patch

(limited to 'target')

diff --git a/target/linux/generic-2.6/config-2.6.24 b/target/linux/generic-2.6/config-2.6.24
index 016406fd1..0ccfd5440 100644
--- a/target/linux/generic-2.6/config-2.6.24
+++ b/target/linux/generic-2.6/config-2.6.24
@@ -235,6 +235,7 @@ CONFIG_CRC_CCITT=m
 CONFIG_CRC_ITU_T=m
 CONFIG_CROSSCOMPILE=y
 CONFIG_CRYPTO=y
+CONFIG_CRYPTO_AEAD=m
 CONFIG_CRYPTO_AES=m
 CONFIG_CRYPTO_ALGAPI=m
 CONFIG_CRYPTO_ANUBIS=m
diff --git a/target/linux/generic-2.6/patches-2.6.24/975-crypto_kconfig_hacks.patch b/target/linux/generic-2.6/patches-2.6.24/975-crypto_kconfig_hacks.patch
new file mode 100644
index 000000000..ec3fdc65c
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.24/975-crypto_kconfig_hacks.patch
@@ -0,0 +1,30 @@
+--- linux-2.6.24.7/crypto/Kconfig	2008-05-07 01:22:34.000000000 +0200
++++ linux-2.6.24.7.new/crypto/Kconfig	2009-01-06 12:14:43.000000000 +0100
+@@ -20,7 +20,7 @@
+ if CRYPTO
+ 
+ config CRYPTO_ALGAPI
+-	tristate
++	tristate "ALG API"
+ 	help
+ 	  This option provides the API for cryptographic algorithms.
+ 
+@@ -29,15 +29,15 @@
+ 	select CRYPTO_BLKCIPHER
+ 
+ config CRYPTO_AEAD
+-	tristate
++	tristate "AEAD"
+ 	select CRYPTO_ALGAPI
+ 
+ config CRYPTO_BLKCIPHER
+-	tristate
++	tristate "Block cipher"
+ 	select CRYPTO_ALGAPI
+ 
+ config CRYPTO_HASH
+-	tristate
++	tristate "HASH"
+ 	select CRYPTO_ALGAPI
+ 
+ config CRYPTO_MANAGER
-- 
cgit v1.2.3