[OE-core] [PATCH 2/2] edgerouter: libffi: fix build with soft-float tune

Peter Kjellerstedt peter.kjellerstedt at axis.com
Tue May 10 08:01:24 UTC 2016


FYI, MIPS o32 softfloat does not build either. We have been using the 
attached patch that I found on the net to fix this.

//Peter

> -----Original Message-----
> From: openembedded-core-bounces at lists.openembedded.org
> [mailto:openembedded-core-bounces at lists.openembedded.org] On Behalf Of
> Ruslan Babayev
> Sent: den 10 maj 2016 02:48
> To: openembedded-core at lists.openembedded.org
> Subject: [OE-core] [PATCH 2/2] edgerouter: libffi: fix build with soft-
> float tune
> 
> Signed-off-by: Ruslan Babayev <ruslan at babayev.com>
> ---
>  .../recipes-support/libffi/libffi/mips-n32-soft-float.patch | 13
> +++++++++++++
>  meta/recipes-support/libffi/libffi_3.2.1.bb                 |  1 +
>  2 files changed, 14 insertions(+)
>  create mode 100644 meta/recipes-support/libffi/libffi/mips-n32-soft-
> float.patch
> 
> diff --git a/meta/recipes-support/libffi/libffi/mips-n32-soft-
> float.patch b/meta/recipes-support/libffi/libffi/mips-n32-soft-
> float.patch
> new file mode 100644
> index 0000000..c901614
> --- /dev/null
> +++ b/meta/recipes-support/libffi/libffi/mips-n32-soft-float.patch
> @@ -0,0 +1,13 @@
> +Index: libffi-3.2.1/src/mips/n32.S
> +===================================================================
> +--- libffi-3.2.1.orig/src/mips/n32.S
> ++++ libffi-3.2.1/src/mips/n32.S
> +@@ -30,7 +30,7 @@
> +
> + /* Only build this code if we are compiling for n32 */
> +
> +-#if defined(FFI_MIPS_N32)
> ++#if defined(FFI_MIPS_N32) && !defined(__mips_soft_float)
> +
> + #define callback a0
> + #define bytes	 a2
> diff --git a/meta/recipes-support/libffi/libffi_3.2.1.bb
> b/meta/recipes-support/libffi/libffi_3.2.1.bb
> index 72e25fb..5b57e79 100644
> --- a/meta/recipes-support/libffi/libffi_3.2.1.bb
> +++ b/meta/recipes-support/libffi/libffi_3.2.1.bb
> @@ -12,6 +12,7 @@ LIC_FILES_CHKSUM =
> "file://LICENSE;md5=3610bb17683a0089ed64055416b2ae1b"
>  SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \
>             file://not-win32.patch \
>  	   file://0001-mips-Use-compiler-internal-define-for-linux.patch
> \
> +           file://mips-n32-soft-float.patch \
>  	   "
> 
>  SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43"
> --
> 2.7.4
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips.softfloat.patch
Type: application/octet-stream
Size: 1979 bytes
Desc: mips.softfloat.patch
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160510/ba1b75d3/attachment-0002.obj>


More information about the Openembedded-core mailing list