summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libffi
diff options
context:
space:
mode:
authorsweeaun <swee.aun.khor@intel.com>2017-07-19 13:29:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-24 09:13:30 +0100
commit027f3d0aefbd2825eb65662a738cd40b63915224 (patch)
tree71f8d825a72992626ffad1ce31e265a3154e61cf /meta/recipes-support/libffi
parent07f87dadd7db10b67e5d1e153fcc44d4045be899 (diff)
downloadpoky-027f3d0aefbd2825eb65662a738cd40b63915224.tar.gz
libffi: Support musl-x32 build
Added target musl-x32 in configure.ac to support musl-x32 build in libffi. (From OE-Core rev: 318e33a708378652edcf61ce7d9d7f3a07743000) Signed-off-by: sweeaun <swee.aun.khor@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libffi')
-rw-r--r--meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch30
-rw-r--r--meta/recipes-support/libffi/libffi_3.2.1.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch
new file mode 100644
index 0000000000..6b167c8421
--- /dev/null
+++ b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch
@@ -0,0 +1,30 @@
1From 69c3906c85c791716bf650aa36d9361d22acf3fb Mon Sep 17 00:00:00 2001
2From: sweeaun <swee.aun.khor@intel.com>
3Date: Thu, 6 Jul 2017 16:32:46 -0700
4Subject: [PATCH] libffi: Support musl x32 build
5
6Support libffi build with target musl-x32.
7
8Upstream-Status: Pending
9
10Signed-off-by: sweeaun <swee.aun.khor@intel.com>
11---
12 configure.ac | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/configure.ac b/configure.ac
16index a7bf5ee..8ebe99c 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -177,7 +177,7 @@ case "$host" in
20 TARGETDIR=x86
21 if test $ac_cv_sizeof_size_t = 4; then
22 case "$host" in
23- *-gnux32)
24+ *-gnux32 | *-muslx32)
25 TARGET=X86_64
26 ;;
27 *)
28--
292.7.4
30
diff --git a/meta/recipes-support/libffi/libffi_3.2.1.bb b/meta/recipes-support/libffi/libffi_3.2.1.bb
index 43eee8efc4..2a3f4b743d 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 \
13 file://not-win32.patch \ 13 file://not-win32.patch \
14 file://0001-mips-Use-compiler-internal-define-for-linux.patch \ 14 file://0001-mips-Use-compiler-internal-define-for-linux.patch \
15 file://0001-mips-fix-MIPS-softfloat-build-issue.patch \ 15 file://0001-mips-fix-MIPS-softfloat-build-issue.patch \
16 file://0001-libffi-Support-musl-x32-build.patch \
16 " 17 "
17 18
18SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43" 19SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43"