mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 15:32:24 +00:00
772702793c
Update fatrw from 0.2.9 to 0.2.21 Change-type: patch
26 lines
408 B
Bash
Executable File
26 lines
408 B
Bash
Executable File
#!/bin/sh
|
|
# rust-arch.sh
|
|
# return the rust triple corresponding to the apk arch
|
|
|
|
apk_arch=$(apk --print-arch)
|
|
case $apk_arch in
|
|
x86_64)
|
|
printf "x86_64-unknown-linux-musl"
|
|
;;
|
|
aarch64)
|
|
printf "aarch64-unknown-linux-musl"
|
|
;;
|
|
armv7)
|
|
printf "armv7-unknown-linux-musleabihf"
|
|
;;
|
|
armhf)
|
|
printf "arm-unknown-linux-musleabihf"
|
|
;;
|
|
x86)
|
|
printf "i686-unknown-linux-musl"
|
|
;;
|
|
*)
|
|
printf "%s" "$apk_arch"
|
|
;;
|
|
esac
|