#!/bin/sh # NOTE: THIS IS NOT USEFUL ANYMORE !!! THIS HAS BEEN ARCHIVED # Download Linaro toolchain as indicated in README # Complete download URL: https://releases.linaro.org/components/toolchain/binaries/latest-6/arm-linux-gnueabihf/gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz # It decompresses to /opt/toolchains/arm-linux-gnueabihf_6.4.1 to match VM structure and hardcoded path in .vscode/launch.json # License: MIT set -xe # stops the execution if one the command fails TOOLCHAIN=gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf TOOLCHAIN_ARCHIVE=$TOOLCHAIN.tar.xz OPT_FOLDER=arm-linux-gnueabihf_6.4.1 CHECKSUM=$TOOLCHAIN_ARCHIVE.asc LINK=https://releases.linaro.org/components/toolchain/binaries/latest-6/arm-linux-gnueabihf/ pushd /tmp # important to avoid big latency in WSL when under /mnt/ curl -LO "$LINK$TOOLCHAIN_ARCHIVE" curl -LO "$LINK$CHECKSUM" md5sum --check $CHECKSUM tar -xvf $TOOLCHAIN_ARCHIVE sudo mkdir -p /opt/toolchains sudo mv $TOOLCHAIN /opt/toolchains/$OPT_FOLDER rm $TOOLCHAIN_ARCHIVE $CHECKSUM popd