blob: df6c6444a2798b47ceb2a062ae078018ec2d1f37 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
machine=`uname -m`
case "$machine" in
"arm")
cpu="arm"
cpufamily="arm"
archabi="armhf"
syslibdir="arm-linux-gnueabihf"
;;
"armv7l")
cpu="armv7l"
cpufamily="arm"
archabi="armhf"
syslibdir="arm-linux-gnueabihf"
;;
"aarch64")
cpu="aarch64"
cpufamily="arm"
archabi="arm64"
syslibdir="aarch64-linux-gnu"
;;
"x86_64")
cpu="x86_64"
cpufamily="x86"
archabi="amd64"
syslibdir="x86_64-linux-gnu"
;;
*)
echo "Unsupported machine $machine"
exit 1
;;
esac
echo machine $machine
echo cpu $cpu
echo cpufamily $cpufamily
echo archabi $archabi
echo syslibdir $syslibdir
|