]> code.ossystems Code Review - openembedded-core.git/commitdiff
openssl: Repace if-else with case and add musl triplet
authorKhem Raj <raj.khem@gmail.com>
Sat, 16 Aug 2014 01:44:16 +0000 (18:44 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Aug 2014 07:12:14 +0000 (08:12 +0100)
Simplifies the code and adds knowlwdge about musl targets

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/openssl/openssl.inc

index b839c00dde55419e2e568e609a7b6a95488f4d07..a99953e4bce935f275fc039f20e304758e4088af 100644 (file)
@@ -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)