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

Simplifies the code and adds knowlwdge about musl targets

(From OE-Core rev: 106305227003761c3fc562c21bb859a5256f2b36)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2014-08-15 18:44:16 -07:00 committed by Richard Purdie
parent 00e054eac3
commit 5f69b66927
1 changed files with 10 additions and 10 deletions

View 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)