diff options
| author | Khem Raj <raj.khem@gmail.com> | 2014-08-15 18:44:16 -0700 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-16 08:12:14 +0100 | 
| commit | 106305227003761c3fc562c21bb859a5256f2b36 (patch) | |
| tree | de41701bc4c7ce05be5e92f79b901423def7ec3f | |
| parent | 7df3b098278b6d5eb418af9dfe7fd2d3b3ea607c (diff) | |
| download | openembedded-core-106305227003761c3fc562c21bb859a5256f2b36.tar.gz openembedded-core-106305227003761c3fc562c21bb859a5256f2b36.tar.bz2 openembedded-core-106305227003761c3fc562c21bb859a5256f2b36.zip | |
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@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/openssl/openssl.inc | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc index b839c00dde..a99953e4bc 100644 --- a/meta/recipes-connectivity/openssl/openssl.inc +++ b/meta/recipes-connectivity/openssl/openssl.inc @@ -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) | 
