@@ -3,10 +3,18 @@ if [ "$1" == "--fake" ]; then echo "true" exit 0 fi + +# Some systems do not compile well with this fake uname in place +# provide the real uname for them. +case "${CROSS}" in + mipsel-unknown-linux-uclibc) + unset CROSS + ;; +esac if [ -z "${CROSS}" ]; then # If not cross compiling, revert to system uname while [ "$(uname --fake 2>/dev/null)" == "true" -a -n "${PATH}" ]; do PATH="$(echo "${PATH}" | /usr/bin/sed 's@^[^:]*$@@;s@^[^:]*:@@')" @@ -65,12 +73,15 @@ sysmachine="i686" ;; ia64-*) sysmachine="ia64" ;; - arm-*) + arm-*|armel-*|armeb-*) sysmachine="armv7l" + ;; + mipsel-*|mipseb-*) + sysmachine="mips" ;; esac for arg in $(echo "$@" | sed 's@.@ & @g'); do case "${arg}" in