uname2platform.sh 362 B

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