[oe-commits] Khem Raj : openssl: Repace if-else with case and add musl triplet
git at git.openembedded.org
git at git.openembedded.org
Thu Aug 14 21:33:46 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 3e17f4f921f1e7ad0b1884bf37b078fc94e8f5dd
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3e17f4f921f1e7ad0b1884bf37b078fc94e8f5dd
Author: Khem Raj <raj.khem at gmail.com>
Date: Thu Aug 14 02:51:22 2014 -0700
openssl: Repace if-else with case and add musl triplet
Simplifies the code and adds knowlwdge about musl targets
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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)
More information about the Openembedded-commits
mailing list