Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] Support MUSL-x32 build for openssl and libffi
@ 2017-07-19 20:29 swee.aun.khor
  2017-07-19 20:29 ` [PATCH 1/2] openssl: Support musl-x32 build swee.aun.khor
  2017-07-19 20:29 ` [PATCH 2/2] libffi: " swee.aun.khor
  0 siblings, 2 replies; 5+ messages in thread
From: swee.aun.khor @ 2017-07-19 20:29 UTC (permalink / raw)
  To: openembedded-core

From: sweeaun <swee.aun.khor@intel.com>

Modification to enable MUSL-x32 build for openssl and libffi recipes.

The following changes since commit 57f606b12b339c82e6981d7ac32450c00d787085:

  libgcrypt: upgrade to 1.7.8 (2017-07-19 15:13:40 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib sweeaun/musl_x32_patch3
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=sweeaun/musl_x32_patch3

sweeaun (2):
  openssl: Support musl-x32 build
  libffi: Support musl-x32 build

 meta/recipes-connectivity/openssl/openssl.inc      |  5 ++--
 .../0001-libffi-Support-musl-x32-build.patch       | 30 ++++++++++++++++++++++
 meta/recipes-support/libffi/libffi_3.2.1.bb        |  1 +
 3 files changed, 34 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch

-- 
2.7.4



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] openssl: Support musl-x32 build
  2017-07-19 20:29 [PATCH 0/2] Support MUSL-x32 build for openssl and libffi swee.aun.khor
@ 2017-07-19 20:29 ` swee.aun.khor
  2017-07-22  8:20   ` Richard Purdie
  2017-07-19 20:29 ` [PATCH 2/2] libffi: " swee.aun.khor
  1 sibling, 1 reply; 5+ messages in thread
From: swee.aun.khor @ 2017-07-19 20:29 UTC (permalink / raw)
  To: openembedded-core

From: sweeaun <swee.aun.khor@intel.com>

Support musl-x32 build which to build openssl with 32 bits.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
---
 meta/recipes-connectivity/openssl/openssl.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index ce295e8..a56bd6e 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -66,7 +66,8 @@ do_configure () {
 	case $os in
 	linux-gnueabi |\
 	linux-gnuspe |\
-	linux-musl*)
+	linux-musleabi |\
+	linux-muslspe)
 		os=linux
 		;;
 		*)
@@ -98,7 +99,7 @@ do_configure () {
 	linux-i686)
 		target=debian-i386-i686/cmov
 		;;
-	linux-gnux32-x86_64)
+	linux-gnux32-x86_64 | linux-muslx32-x86_64 )
 		target=linux-x32
 		;;
 	linux-gnu64-x86_64)
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] libffi: Support musl-x32 build
  2017-07-19 20:29 [PATCH 0/2] Support MUSL-x32 build for openssl and libffi swee.aun.khor
  2017-07-19 20:29 ` [PATCH 1/2] openssl: Support musl-x32 build swee.aun.khor
@ 2017-07-19 20:29 ` swee.aun.khor
  1 sibling, 0 replies; 5+ messages in thread
From: swee.aun.khor @ 2017-07-19 20:29 UTC (permalink / raw)
  To: openembedded-core

From: sweeaun <swee.aun.khor@intel.com>

Added target musl-x32 in configure.ac to support musl-x32 build in libffi.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
---
 .../0001-libffi-Support-musl-x32-build.patch       | 30 ++++++++++++++++++++++
 meta/recipes-support/libffi/libffi_3.2.1.bb        |  1 +
 2 files changed, 31 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-build.patch b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch
new file mode 100644
index 0000000..6b167c8
--- /dev/null
+++ b/meta/recipes-support/libffi/libffi/0001-libffi-Support-musl-x32-build.patch
@@ -0,0 +1,30 @@
+From 69c3906c85c791716bf650aa36d9361d22acf3fb Mon Sep 17 00:00:00 2001
+From: sweeaun <swee.aun.khor@intel.com>
+Date: Thu, 6 Jul 2017 16:32:46 -0700
+Subject: [PATCH] libffi: Support musl x32 build
+
+Support libffi build with target musl-x32.
+
+Upstream-Status: Pending
+
+Signed-off-by: sweeaun <swee.aun.khor@intel.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index a7bf5ee..8ebe99c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -177,7 +177,7 @@ case "$host" in
+ 	TARGETDIR=x86
+ 	if test $ac_cv_sizeof_size_t = 4; then
+ 	  case "$host" in
+-	    *-gnux32)
++	    *-gnux32 | *-muslx32)
+ 	      TARGET=X86_64
+ 	      ;;
+ 	    *)
+-- 
+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"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] openssl: Support musl-x32 build
  2017-07-19 20:29 ` [PATCH 1/2] openssl: Support musl-x32 build swee.aun.khor
@ 2017-07-22  8:20   ` Richard Purdie
  2017-07-24  2:28     ` Khor, Swee Aun
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2017-07-22  8:20 UTC (permalink / raw)
  To: swee.aun.khor, openembedded-core

On Wed, 2017-07-19 at 13:29 -0700, swee.aun.khor@intel.com wrote:
> From: sweeaun <swee.aun.khor@intel.com>
> 
> Support musl-x32 build which to build openssl with 32 bits.
> 
> Signed-off-by: sweeaun <swee.aun.khor@intel.com>
> ---
>  meta/recipes-connectivity/openssl/openssl.inc | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc
> b/meta/recipes-connectivity/openssl/openssl.inc
> index ce295e8..a56bd6e 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -66,7 +66,8 @@ do_configure () {
>  	case $os in
>  	linux-gnueabi |\
>  	linux-gnuspe |\
> -	linux-musl*)
> +	linux-musleabi |\
> +	linux-muslspe)
>  		os=linux
>  		;;
>  		*)

I think there is a bug here if os=linux-musl which likely caused:

https://autobuilder.yocto.io/builders/nightly-musl/builds/364

Cheers,

Richard



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] openssl: Support musl-x32 build
  2017-07-22  8:20   ` Richard Purdie
@ 2017-07-24  2:28     ` Khor, Swee Aun
  0 siblings, 0 replies; 5+ messages in thread
From: Khor, Swee Aun @ 2017-07-24  2:28 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core@lists.openembedded.org

Thanks. Will fix that and resubmit the patch. 

Regards,
SweeAun

-----Original Message-----
From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org] 
Sent: Saturday, July 22, 2017 4:20 PM
To: Khor, Swee Aun <swee.aun.khor@intel.com>; openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 1/2] openssl: Support musl-x32 build

On Wed, 2017-07-19 at 13:29 -0700, swee.aun.khor@intel.com wrote:
> From: sweeaun <swee.aun.khor@intel.com>
> 
> Support musl-x32 build which to build openssl with 32 bits.
> 
> Signed-off-by: sweeaun <swee.aun.khor@intel.com>
> ---
>  meta/recipes-connectivity/openssl/openssl.inc | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc
> b/meta/recipes-connectivity/openssl/openssl.inc
> index ce295e8..a56bd6e 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -66,7 +66,8 @@ do_configure () {
>  	case $os in
>  	linux-gnueabi |\
>  	linux-gnuspe |\
> -	linux-musl*)
> +	linux-musleabi |\
> +	linux-muslspe)
>  		os=linux
>  		;;
>  		*)

I think there is a bug here if os=linux-musl which likely caused:

https://autobuilder.yocto.io/builders/nightly-musl/builds/364

Cheers,

Richard


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-24  2:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-19 20:29 [PATCH 0/2] Support MUSL-x32 build for openssl and libffi swee.aun.khor
2017-07-19 20:29 ` [PATCH 1/2] openssl: Support musl-x32 build swee.aun.khor
2017-07-22  8:20   ` Richard Purdie
2017-07-24  2:28     ` Khor, Swee Aun
2017-07-19 20:29 ` [PATCH 2/2] libffi: " swee.aun.khor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox