[OE-core] [PATCH] openssl: fix mips64 configure support

wenzong fan wenzong.fan at windriver.com
Sat Nov 7 07:23:55 UTC 2015


On 11/07/2015 03:09 PM, Khem Raj wrote:
> On Fri, Nov 6, 2015 at 11:07 PM, wenzong fan <wenzong.fan at windriver.com> wrote:
>> If target name is linux-mips64, set it as linux-mips to get it build with
>> mips(32) userspace.
>
> is it really building for mips32 ?
>
>

Yes, with this change, the "Configure" will pass '-mips2' to CFLAGS, 
otherwise it will pass '-mips3' which may cause build errors:

| Error: -mips3 conflicts with the other architecture options, which 
imply -mips64r2
| cryptlib.c:1:0: error: '-mips3' conflicts with the other architecture 
options, which specify a mips64r2 processor

I built it with a cav-octeon3 bsp.

Looks openssl doesn't work with mips64 userspace, I got this from git logs:

commit 858646c7bd11d1dad8c14e30f3fe6b4bd58a31b2
Author: Randy MacLeod <Randy.MacLeod at windriver.com>
Date:   Fri Dec 21 14:05:46 2012 -0500

     openssl: Add mips64 configure support.

     Add mips64 configure support but assume mips(32) userspace.

     (From OE-Core rev: 7d775b071b902ee0de6391b2c30d36e3003643e1)

     Signed-off-by: Randy MacLeod <Randy.MacLeod at windriver.com>
     Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
     Signed-off-by: Saul Wold <sgw at linux.intel.com>
     Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

diff --git a/meta/recipes-connectivity/openssl/openssl.inc 
b/meta/recipes-connectivity/openssl/openssl.inc
index e1e7b65..af1922e 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -95,6 +95,9 @@ do_configure () {
         linux-mipsel)
                 target=debian-mipsel
                 ;;
+        linux-*-mips64)
+               target=linux-mips
+                ;;
         linux-powerpc)
                 target=linux-ppc
                 ;;

Thanks
Wenzong



More information about the Openembedded-core mailing list