On Monday 04 April 2005 20:39, Blaisorblade wrote:
> Ok, I'm writing the patch. Use the attached one on 2.6.11 (and/or -bs1),
> nor on 2.6.9!
> I'm writing a better one for merge, which works well also for AMD64 users
> (which can't use aes-i586).
Just a note - the patch I sent yesterday in a hurry was bogus, it didn't allow 
to enable the config option because I forgot deleting a line. The attached 
one actually allow to enable the option and it is compiled in.

Let me know of the result, so I can make it work for next release. This patch 
will be in the next 2.6.11-bb/-bs release.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
Support AES-i586 for UML. Dirty version, which works well (but won't work for
AMD64 users building 64-bit UMLs).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
---

 clean-linux-2.6.11-paolo/arch/um/Makefile-i386 |    2 +-
 clean-linux-2.6.11-paolo/crypto/Kconfig        |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -puN crypto/Kconfig~uml-crypto-i586-dirty crypto/Kconfig
--- clean-linux-2.6.11/crypto/Kconfig~uml-crypto-i586-dirty	2005-04-05 17:02:00.000000000 +0200
+++ clean-linux-2.6.11-paolo/crypto/Kconfig	2005-04-05 17:02:01.000000000 +0200
@@ -133,7 +133,7 @@ config CRYPTO_SERPENT
 
 config CRYPTO_AES
 	tristate "AES cipher algorithms"
-	depends on CRYPTO && !(X86 && !X86_64)
+	depends on CRYPTO && !( (X86 || UML) && !X86_64)
 	help
 	  AES cipher algorithms (FIPS-197). AES uses the Rijndael 
 	  algorithm.
@@ -153,7 +153,7 @@ config CRYPTO_AES
 
 config CRYPTO_AES_586
 	tristate "AES cipher algorithms (i586)"
-	depends on CRYPTO && (X86 && !X86_64)
+	depends on CRYPTO && ( (X86 || UML) && !X86_64)
 	help
 	  AES cipher algorithms (FIPS-197). AES uses the Rijndael 
 	  algorithm.
diff -puN arch/um/Makefile-i386~uml-crypto-i586-dirty arch/um/Makefile-i386
--- clean-linux-2.6.11/arch/um/Makefile-i386~uml-crypto-i586-dirty	2005-04-05 17:02:01.000000000 +0200
+++ clean-linux-2.6.11-paolo/arch/um/Makefile-i386	2005-04-05 17:02:01.000000000 +0200
@@ -1,4 +1,4 @@
-SUBARCH_CORE := arch/um/sys-i386/
+SUBARCH_CORE := arch/um/sys-i386/ arch/i386/crypto/
 
 TOP_ADDR := $(CONFIG_TOP_ADDR)
 
_

Reply via email to