From: Tom Rini Date: Mon, 24 Jan 2011 18:19:10 +0000 (-0700) Subject: openssl.inc: Simplify our check for a 'linux' OS. X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46cc091e64b1be3eab002653b426a9492730cecd;p=openembedded.git openssl.inc: Simplify our check for a 'linux' OS. Signed-off-by: Tom Rini --- diff --git a/recipes/openssl/openssl.inc b/recipes/openssl/openssl.inc index 5ef322c486..55e9bbbdac 100644 --- a/recipes/openssl/openssl.inc +++ b/recipes/openssl/openssl.inc @@ -46,15 +46,7 @@ do_configure () { ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/ os=${HOST_OS} - if [ "x$os" = "xlinux-uclibc" ]; then - os=linux - elif [ "x$os" = "xlinux-uclibceabi" ]; then - os=linux - elif [ "x$os" = "xlinux-gnueabi" ]; then - os=linux - elif [ "x$os" = "xlinux-uclibcspe" ]; then - os=linux - elif [ "x$os" = "xlinux-gnuspe" ]; then + if [ `echo $os | grep -q linux; echo $?` -eq 0 ]; then os=linux fi target="$os-${HOST_ARCH}"