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