Skip to contentSkip to conversation

openssl: Repace if-else with case and add musl triplet

PATCH New Khem Raj 1 participant 1 message Aug 16, 2014

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v3 1/1 openssl: Repace if-else with case and add musl triplet

Simplifies the code and adds knowlwdge about musl targets

---
 meta/recipes-connectivity/openssl/openssl.inc |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
meta/recipes-connectivity/openssl/openssl.inc +10 -10
index b839c00..a99953e 100644
@@ -60,17 +60,17 @@ 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-uclibceabi |\
+	linux-gnueabi |\
+	linux-uclibcspe |\
+	linux-gnuspe |\
+	linux-musl*)
 		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)
Signature · 1 line
1.7.10.4