From: Damjan Marion Date: Fri, 16 May 2014 20:37:39 +0000 (+0200) Subject: build: autodetect platform X-Git-Tag: v4.1~2079^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F391%2Fhead;p=thirdparty%2Ftvheadend.git build: autodetect platform --- diff --git a/support/configure.inc b/support/configure.inc index 8e75275b5..8ddae9820 100755 --- a/support/configure.inc +++ b/support/configure.inc @@ -12,7 +12,7 @@ CONFIGURE_ARGS="$*" # System setup -[ -z "$PLATFORM" ] && PLATFORM=linux +[ -z "$PLATFORM" ] && PLATFORM=$(uname -s | tr "[:upper:]" "[:lower:]") [ -z "$CPU" ] && CPU=generic [ -z "$ARCH" ] && ARCH=`uname -m` [ -z "$OSENV" ] && OSENV=posix