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
2
3
4
5
6
7
8
9
10
11
12
13
14
..
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#! /usr/bin/env bash
if [ "$1" == "--fake" ]; then
echo "true"
exit 0
fi
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@^[^:]*:@@')"
export PATH
................................................................................
;;
i?86-*)
sysmachine="i686"
;;
ia64-*)
sysmachine="ia64"
;;
arm-*)
sysmachine="armv7l"
;;
esac
for arg in $(echo "$@" | sed 's@.@ & @g'); do
case "${arg}" in
-)
continue
|
>
>
>
>
>
>
>
>
|
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
..
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#! /usr/bin/env bash 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@^[^:]*:@@')" export PATH ................................................................................ ;; i?86-*) sysmachine="i686" ;; ia64-*) sysmachine="ia64" ;; arm-*|armel-*|armeb-*) sysmachine="armv7l" ;; mipsel-*|mipseb-*) sysmachine="mips" ;; esac for arg in $(echo "$@" | sed 's@.@ & @g'); do case "${arg}" in -) continue |