* [PATCH] openssl: Repace if-else with case and add musl triplet
@ 2014-08-14 9:51 Khem Raj
2014-08-15 17:17 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2014-08-14 9:51 UTC (permalink / raw)
To: openembedded-core
Simplifies the code and adds knowlwdge about musl targets
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-connectivity/openssl/openssl.inc | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index b839c00..e585dbb 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -60,17 +60,15 @@ do_configure () {
ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
os=${HOST_OS}
- if [ "x$os" = "xlinux-uclibc" ]; then
+ case $os in
+ linux-uclibc* |\
+ linux-musl* |\
+ linux-gnu*)
os=linux
- elif [ "x$os" = "xlinux-uclibceabi" ]; then
- os=linux
- elif [ "x$os" = "xlinux-uclibcspe" ]; then
- os=linux
- elif [ "x$os" = "xlinux-gnuspe" ]; then
- os=linux
- elif [ "x$os" = "xlinux-gnueabi" ]; then
- os=linux
- fi
+ ;;
+ *)
+ ;;
+ esac
target="$os-${HOST_ARCH}"
case $target in
linux-arm)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] openssl: Repace if-else with case and add musl triplet
2014-08-14 9:51 [PATCH] openssl: Repace if-else with case and add musl triplet Khem Raj
@ 2014-08-15 17:17 ` Richard Purdie
2014-08-16 1:34 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2014-08-15 17:17 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On Thu, 2014-08-14 at 02:51 -0700, Khem Raj wrote:
> Simplifies the code and adds knowlwdge about musl targets
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/recipes-connectivity/openssl/openssl.inc | 18 ++++++++----------
> 1 file changed, 8 insertions(+), 10 deletions(-)
This breaks x32 builds:
https://autobuilder.yoctoproject.org/main/builders/nightly-x32/builds/204/steps/BuildImages/logs/stdio
(target doesn't end up set to linux-x32 which it needs to be)
Cheers,
Richard
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> index b839c00..e585dbb 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -60,17 +60,15 @@ do_configure () {
> ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
>
> os=${HOST_OS}
> - if [ "x$os" = "xlinux-uclibc" ]; then
> + case $os in
> + linux-uclibc* |\
> + linux-musl* |\
> + linux-gnu*)
> os=linux
> - elif [ "x$os" = "xlinux-uclibceabi" ]; then
> - os=linux
> - elif [ "x$os" = "xlinux-uclibcspe" ]; then
> - os=linux
> - elif [ "x$os" = "xlinux-gnuspe" ]; then
> - os=linux
> - elif [ "x$os" = "xlinux-gnueabi" ]; then
> - os=linux
> - fi
> + ;;
> + *)
> + ;;
> + esac
> target="$os-${HOST_ARCH}"
> case $target in
> linux-arm)
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] openssl: Repace if-else with case and add musl triplet
2014-08-15 17:17 ` Richard Purdie
@ 2014-08-16 1:34 ` Khem Raj
0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2014-08-16 1:34 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
On Fri, Aug 15, 2014 at 10:17 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> This breaks x32 builds:
>
> https://autobuilder.yoctoproject.org/main/builders/nightly-x32/builds/204/steps/BuildImages/logs/stdio
>
> (target doesn't end up set to linux-x32 which it needs to be)
>
oops it will also break mips64/n32 :(. I have posted a V2 to address
both the issues
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-16 1:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 9:51 [PATCH] openssl: Repace if-else with case and add musl triplet Khem Raj
2014-08-15 17:17 ` Richard Purdie
2014-08-16 1:34 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.