aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/patches/010-use_target_for_configure.patch
blob: 9e8618f83ced46eb49ad25d241bd17c9f73b38ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
configure: Allow overriding uname results

In a cross compile setting it makes no sense to rely on the "uname" values
reported by the build host system. This patch allows overriding the
"uname -r", "uname -s" and "uname -m" results with the "UNAME_R", "UNAME_S"
and "UNAME_M" environment variables.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

--- a/configure
+++ b/configure
@@ -10,9 +10,9 @@ CROSS_COMPILE=
 CC=cc
 CFLAGS=
 
-system=`uname -s`
-release=`uname -r`
-arch=`uname -m`
+system=${UNAME_S:-`uname -s`}
+release=${UNAME_R:-`uname -r`}
+arch=${UNAME_M:-`uname -m`}
 state="unknown"
 
 case $system in