master
sh 18 lines 327 Bytes
Raw
1 #!/bin/sh
2 #
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 set -e
6
7 BUILDARCH="${1}"
8
9 case "${BUILDARCH}" in
10 x86_64) echo "linux/amd64" ;;
11 armv6l) echo "linux/arm/v6" ;;
12 armv7l) echo "linux/arm/v7" ;;
13 aarch64) echo "linux/arm64/v8" ;;
14 *)
15 echo "Unknown target architecture '${BUILDARCH}'." >&2
16 exit 1
17 ;;
18 esac