On 09/07/2012 11:55 AM, Brad House wrote:
This patchset is against OpenSSL 1.0.1c.
It does 2 things very minor things.
First, it adds a linux-mipsel target to Configure.
Second, it fixes the MIPS perlasm, it appears as though at some point
AES_set_encrypt_key and AES_set_decrypt_key in the ASM needed to be
renamed to private_AES_set_encrypt_key and private_AES_set_decrypt_key,
respectively and MIPS got missed.
Here's a second patch which updates the "config" os guess script
as well, it should be applied along with the previous patch, as well
as the patch I provided for the Configure script for supporting
--sysroot.
Example usage for my cross-development environment:
export PATH=$PATH:/opt/uclibc/usr/bin
export MACHINE=mips
export CROSS_COMPILE=mipsel-linux-
export ARCH=4ksd
export SYSTEM=Linux
export RELEASE=2.6
export options="--sysroot=/opt/uclibc -D_FILE_OFFSET_BITS=32"
./config -t
Operating system: mips-whatever-linux2
Configuring for linux-mipsel
/usr/bin/perl ./Configure linux-mipsel --sysroot=/opt/uclibc
-D_FILE_OFFSET_BITS=32 -march=4ksd -Wa,--noexecstack
Thanks.
-Brad
--- openssl-1.0.1c.old/config 2011-11-14 16:12:53.000000000 -0500
+++ openssl-1.0.1c/config 2012-09-07 12:35:37.843453817 -0400
@@ -644,6 +644,11 @@
armv[1-3]*-*-linux2) OUT="linux-generic32" ;;
armv[7-9]*-*-linux2) OUT="linux-armv4"; options="$options -march=armv7-a" ;;
arm*-*-linux2) OUT="linux-armv4" ;;
+ mips*-*-linux2)
+ OUT="linux-mipsel"
+ [ "$ARCH" ] || ARCH="mips2"
+ options="$options -march=$ARCH"
+ ;;
sh*b-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;
sh*-*-linux2) OUT="linux-generic32"; options="$options -DL_ENDIAN" ;;
m68k*-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;