2021-10-15 07:29:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -exuo pipefail
|
|
|
|
|
|
|
|
apt-get update
|
2022-11-30 03:55:28 +00:00
|
|
|
|
2022-12-20 09:27:04 +00:00
|
|
|
PACKAGES=("git" "clang-13" "libclang-dev" "cmake" "make" "gcc-multilib" "g++-multilib")
|
2022-11-30 03:55:28 +00:00
|
|
|
case "${TARGET}" in
|
2022-12-20 09:21:53 +00:00
|
|
|
# aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
|
2022-12-20 09:27:04 +00:00
|
|
|
# apt-get install -yqq "${PACKAGES[@]}" # crossbuild-essential-arm64 # gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
|
2022-12-20 09:21:53 +00:00
|
|
|
# ;;
|
2022-11-30 03:55:28 +00:00
|
|
|
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
|
2022-12-20 04:50:24 +00:00
|
|
|
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
|
2022-11-30 03:55:28 +00:00
|
|
|
;;
|
|
|
|
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
|
2022-12-20 04:50:24 +00:00
|
|
|
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
|
2022-11-30 03:55:28 +00:00
|
|
|
;;
|
|
|
|
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
|
2022-12-20 04:50:24 +00:00
|
|
|
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
|
2022-11-30 03:55:28 +00:00
|
|
|
;;
|
2022-12-14 01:51:56 +00:00
|
|
|
x86_64-unknown-linux-musl)
|
2022-12-20 04:50:24 +00:00
|
|
|
apt-get install -yqq "${PACKAGES[@]}" musl-tools
|
2022-12-14 02:10:29 +00:00
|
|
|
;;
|
2022-11-30 03:55:28 +00:00
|
|
|
*)
|
2022-12-20 04:50:24 +00:00
|
|
|
apt-get install -yqq "${PACKAGES[@]}"
|
2022-11-30 03:55:28 +00:00
|
|
|
;;
|
|
|
|
esac
|