Will do that. 

-----Original Message-----
From: Khem Raj [mailto:raj.k...@gmail.com] 
Sent: Thursday, July 6, 2017 3:22 PM
To: Khor, Swee Aun <swee.aun.k...@intel.com>; 
openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 7/7] libffi: Support musl-x32 build



On 7/5/17 4:56 PM, swee.aun.k...@intel.com wrote:
> From: sweeaun <swee.aun.k...@intel.com>
> 
> Upstream-Status: Pending.
> Added target musl-x32 in configure.ac to support musl-x32 build in libffi.
> 
> Signed-off-by: sweeaun <swee.aun.k...@intel.com>
> ---
>  .../0001-libffi-Support-musl-x32-build.patch       | 29 
> ++++++++++++++++++++++
>  meta/recipes-support/libffi/libffi_3.2.1.bb        |  1 +
>  2 files changed, 30 insertions(+)
>  create mode 100644 
> meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.
> patch
> 
> diff --git 
> a/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-buil
> d.patch 
> b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-buil
> d.patch
> new file mode 100644
> index 0000000..971a543
> --- /dev/null
> +++ b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-
> +++ build.patch
> @@ -0,0 +1,29 @@
> +From 62ac8214b3e8b368bd9365a6920b081aa0125671 Mon Sep 17 00:00:00 
> +2001
> +From: sweeaun <swee.aun.k...@intel.com>
> +Date: Mon, 3 Jul 2017 13:23:31 -0700
> +Subject: [PATCH] libffi: Support musl x32 build
> +
> +Support libffi build with target musl-x32.
> +
> +Signed-off-by: sweeaun <swee.aun.k...@intel.com>
> +---
> + configure.ac | 3 +++
> + 1 file changed, 3 insertions(+)
> +
> +diff --git a/configure.ac b/configure.ac index a7bf5ee..f4e101d 
> +100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -180,6 +180,9 @@ case "$host" in
> +         *-gnux32)
> +           TARGET=X86_64
> +           ;;
> ++            *-muslx32)
> ++              TARGET=X86_64
> ++              ;;

just OR it with case just above it.
*-gnux32 | *-muslx32

> +         *)
> +           TARGET=X86
> +           ;;
> +--
> +2.7.4
> +
> diff --git a/meta/recipes-support/libffi/libffi_3.2.1.bb 
> b/meta/recipes-support/libffi/libffi_3.2.1.bb
> index 43eee8e..2a3f4b7 100644
> --- a/meta/recipes-support/libffi/libffi_3.2.1.bb
> +++ b/meta/recipes-support/libffi/libffi_3.2.1.bb
> @@ -13,6 +13,7 @@ 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://0001-mips-fix-MIPS-softfloat-build-issue.patch \
> +           file://0001-libffi-Support-musl-x32-build.patch \
>          "
>  
>  SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43"
> 

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to