openssl.inc: Simplify our check for a 'linux' OS.
authorTom Rini <tom_rini@mentor.com>
Mon, 24 Jan 2011 18:19:10 +0000 (11:19 -0700)
committerTom Rini <tom_rini@mentor.com>
Mon, 24 Jan 2011 18:19:10 +0000 (11:19 -0700)
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/openssl/openssl.inc

index 5ef322c..55e9bbb 100644 (file)
@@ -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}"