Differences From Artifact [b06e7fd1c1]:
- Executable file build/fake-bin/uname — part of check-in [4ded39fb86] at 2012-02-14 16:09:34 on branch trunk — Added android build support to test infrastructure (user: rkeene, size: 1748) [annotate] [blame] [check-ins using]
To Artifact [482a7c7be3]:
- Executable file
build/fake-bin/uname
— part of check-in
[aa00b0ada2]
at
2012-05-13 18:50:59
on branch trunk
— Updated to use standard cross-compile script for Linux/MIPS target
Updated to include "mips" support in fake uname
Updated to not use fake uname for "mips" (user: rkeene, size: 1983) [annotate] [blame] [check-ins using] [more...]
1 1 #! /usr/bin/env bash 2 2 3 3 if [ "$1" == "--fake" ]; then 4 4 echo "true" 5 5 6 6 exit 0 7 7 fi 8 + 9 +# Some systems do not compile well with this fake uname in place 10 +# provide the real uname for them. 11 +case "${CROSS}" in 12 + mipsel-unknown-linux-uclibc) 13 + unset CROSS 14 + ;; 15 +esac 8 16 9 17 if [ -z "${CROSS}" ]; then 10 18 # If not cross compiling, revert to system uname 11 19 while [ "$(uname --fake 2>/dev/null)" == "true" -a -n "${PATH}" ]; do 12 20 PATH="$(echo "${PATH}" | /usr/bin/sed 's@^[^:]*$@@;s@^[^:]*:@@')" 13 21 14 22 export PATH ................................................................................ 63 71 ;; 64 72 i?86-*) 65 73 sysmachine="i686" 66 74 ;; 67 75 ia64-*) 68 76 sysmachine="ia64" 69 77 ;; 70 - arm-*) 78 + arm-*|armel-*|armeb-*) 71 79 sysmachine="armv7l" 80 + ;; 81 + mipsel-*|mipseb-*) 82 + sysmachine="mips" 72 83 ;; 73 84 esac 74 85 75 86 for arg in $(echo "$@" | sed 's@.@ & @g'); do 76 87 case "${arg}" in 77 88 -) 78 89 continue