OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | configure: Allow overriding uname results |
2 | |||
3 | In a cross compile setting it makes no sense to rely on the "uname" values |
||
4 | reported by the build host system. This patch allows overriding the |
||
5 | "uname -r", "uname -s" and "uname -m" results with the "UNAME_R", "UNAME_S" |
||
6 | and "UNAME_M" environment variables. |
||
7 | |||
8 | Signed-off-by: Jo-Philipp Wich <jo@mein.io> |
||
9 | |||
10 | --- a/configure |
||
11 | +++ b/configure |
||
12 | @@ -8,9 +8,9 @@ SYSCONF=/etc |
||
13 | # if [ -d /NextApps ]; then |
||
14 | # system="NeXTStep" |
||
15 | # else |
||
16 | - system=`uname -s` |
||
17 | - release=`uname -r` |
||
18 | - arch=`uname -m` |
||
19 | + system=${UNAME_S:-`uname -s`} |
||
20 | + release=${UNAME_R:-`uname -r`} |
||
21 | + arch=${UNAME_M:-`uname -m`} |
||
22 | # fi |
||
23 | state="unknown" |
||
24 |