aboutsummaryrefslogtreecommitdiffstats
path: root/jaucpp/scripts/setup-machine-arch.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-16 05:03:16 +0200
committerSven Gothel <[email protected]>2020-10-16 05:03:16 +0200
commit17712847ee2a3955bf0a23f32dd614fe73bbcae7 (patch)
treeb81e0a0764444b5f2d9a74afb29494f579cd2268 /jaucpp/scripts/setup-machine-arch.sh
parent0adbd24f79148f3fbcf3361f1a2744d9e275c81b (diff)
jaucpp: Add standalone support filesjaucpp-export
Diffstat (limited to 'jaucpp/scripts/setup-machine-arch.sh')
-rw-r--r--jaucpp/scripts/setup-machine-arch.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/jaucpp/scripts/setup-machine-arch.sh b/jaucpp/scripts/setup-machine-arch.sh
new file mode 100644
index 00000000..df6c6444
--- /dev/null
+++ b/jaucpp/scripts/setup-machine-arch.sh
@@ -0,0 +1,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
+