2021-10-15 07:29:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -exuo pipefail
|
|
|
|
|
|
|
|
apt-get update
|
|
|
|
|
|
|
|
PACKAGES="git"
|
|
|
|
case "${TARGET}" in
|
2022-03-28 02:52:14 +00:00
|
|
|
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
|
2021-10-15 07:29:52 +00:00
|
|
|
apt-get install -y "${PACKAGES}" {cpp,g++,gcc}-aarch64-linux-gnu
|
|
|
|
;;
|
2022-03-28 02:52:14 +00:00
|
|
|
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
|
2021-10-15 07:29:52 +00:00
|
|
|
apt-get install -y "${PACKAGES}" {cpp,g++,gcc}-arm-linux-gnueabi
|
|
|
|
;;
|
2022-03-28 02:52:14 +00:00
|
|
|
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
|
2021-10-15 07:29:52 +00:00
|
|
|
apt-get install -y "${PACKAGES}" {cpp,g++,gcc}-arm-linux-gnueabihf
|
|
|
|
;;
|
2022-03-28 02:52:14 +00:00
|
|
|
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
|
2021-10-15 07:29:52 +00:00
|
|
|
apt-get install -y "${PACKAGES}" {cpp,g++,gcc}-arm-linux-gnueabihf
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
apt-get install -y "${PACKAGES}"
|
|
|
|
;;
|
|
|
|
esac
|