diff options
author | Sven Gothel <[email protected]> | 2020-10-16 05:03:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-10-16 05:03:16 +0200 |
commit | 17712847ee2a3955bf0a23f32dd614fe73bbcae7 (patch) | |
tree | b81e0a0764444b5f2d9a74afb29494f579cd2268 /jaucpp/scripts/setup-machine-arch.sh | |
parent | 0adbd24f79148f3fbcf3361f1a2744d9e275c81b (diff) |
jaucpp: Add standalone support filesjaucpp-export
Diffstat (limited to 'jaucpp/scripts/setup-machine-arch.sh')
-rw-r--r-- | jaucpp/scripts/setup-machine-arch.sh | 41 |
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 + |