arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

commit ba1d9855aad5ae4414ba11dbb87584b6187f41ad
parent 04945d4bd03ce0f0c5aa3e82ded13c971e6bc9f2
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 27 Oct 2017 17:49:28 +0200

switch to linaro toolchains

Diffstat:
Mconfig | 29++++++++++-------------------
Minit.sh | 69+++++++++++++++++++++------------------------------------------------
2 files changed, 31 insertions(+), 67 deletions(-)

diff --git a/config b/config @@ -21,32 +21,23 @@ ## arm-sdk configuration ## --------------------- - ## options for `make` when building kernel MAKEOPTS="-j$(( $(grep -c 'processor' /proc/cpuinfo) + 1 ))" +## devuan packaged toolchain +#compiler="arm-none-eabi-" -## custom toolchain (armv7+armhf; gcc 4.9.3) -## https://pub.parazyd.cf/mirror/ -#compiler="armv7-devuan-linux-gnueabihf-" -#export PATH="$R/gcc/armv7-devuan-linux-gnueabihf/bin:$PATH:/usr/sbin:/sbin" - - -## custom toolchain (armv6+armel; gcc 4.9.3) -## https://pub.parazyd.cf/mirror/ -#compiler="armv6-devuan-linux-gnueabi-" -#export PATH="$R/gcc/armv6-devuan-linux-gnueabi/bin:$PATH:/usr/sbin:/sbin" - +## linaro armhf toolchain +#compiler="arm-linux-gnueabihf-" -## custom toolchain (aarch64+arm64; gcc 4.9.3) -## https://pub.parazyd.cf/mirror/ -#compiler="aarch64-devuan-linux-gnueabi-" -#export PATH="$R/gcc/aarch64-devuan-linux-gnueabi/bin:$PATH:/usr/sbin:/sbin" +## linaro armel toolchain +#compiler="arm-linux-gnueabi-" +## linaro arm64 toolchain +#compiler="aarch64-linux-gnu-" -## devuan packaged toolchain -compiler="arm-none-eabi-" -export PATH="$PATH:/usr/sbin:/sbin" +export PATH="$R/gcc/linaro-armhf/bin:$R/gcc/linaro-armel/bin:$R/gcc/linaro-arm64/bin" +export PATH="$PATH:/usr/sbin:/sbin:/usr/bin:/bin" ## static qemu arm binary diff --git a/init.sh b/init.sh @@ -36,59 +36,32 @@ git submodule update --init --recursive --checkout mkdir -p gcc #cd lib/libdevuansdk && git checkout next && cd - -## =============== -## armhf toolchain -## =============== -armhfurldl=https://pub.parazyd.cf/mirror/armv7-devuan-linux-gnueabihf.txz -armhfshahc=b8e641a3837a3aeb8a9116b0a5853b1bbc26f14b2f75f6c5005fcd7e23669fd3 -armhfshadl=$(curl -s ${armhfurldl}.sha | awk '{print $1}') +## ================= +## linaro toolchains +## ================= -test $armhfshahc = $armhfshadl || { - printf "(!!) armhf sha256sum doesn't match with hardcoded one\n" - exit 1 +gettc() { + cd gcc + wget -O "$(basename $1)" "$1" && \ + tar xfp "$(basename $1)" && \ + mv "$(basename -s .tar.xz $1)" "linaro-${2}" + cd - } -cd gcc - curl -O ${armhfurldl} && \ - curl -O ${armhfurldl}.sha && \ - sha256sum -c $(basename $armhfurldl).sha \ - && tar xfp $(basename $armhfurldl) -cd - +_hostarch="$(uname -m)" -## =============== -## armel toolchain -## =============== -armelurldl=https://pub.parazyd.cf/mirror/armv6-devuan-linux-gnueabi.txz -armelshahc=9aa5095f6587fea4e79e8894557044879e98917be5fa37000cf2f474c00d451f -armelshadl=$(curl -s ${armelurldl}.sha | awk '{print $1}') +armeltc=arm-linux-gnueabi +armhftc=arm-linux-gnueabihf +arm64tc=aarch64-linux-gnu -test $armelshahc = $armelshadl || { - printf "(!!) armel sha256sum doesn't match with hardcoded one\n" - exit 1 -} - -cd gcc - curl -O ${armelurldl} && \ - curl -O ${armelurldl}.sha && \ - sha256sum -c $(basename $armelurldl).sha \ - && tar xfp $(basename $armelurldl) -cd - +linarover="7.1.1-2017.08" +linarourl="https://releases.linaro.org/components/toolchain/binaries/7.1-2017.08" -## =============== -## arm64 toolchain -## =============== -arm64urldl=https://pub.parazyd.cf/mirror/aarch64-devuan-linux-gnueabi.txz -arm64shahc=80ffad79dd8d9bf8cbd20b3e9f5914f5172d1d5252be8ad4eef078243206fe8f -arm64shadl=$(curl -s ${arm64urldl}.sha | awk '{print $1}') +tc="${linarourl}/${armeltc}/gcc-linaro-${linarover}-${_hostarch}_${armeltc}.tar.xz" +gettc "$tc" "armel" -test $arm64shahc = $arm64shadl || { - printf "(!!) arm64 sha256sum doesn't match with hardcoded one\n" - exit 1 -} +tc="${linarourl}/${armhftc}/gcc-linaro-${linarover}-${_hostarch}_${armhftc}.tar.xz" +gettc "$tc" "armhf" -cd gcc - curl -O ${arm64urldl} && \ - curl -O ${arm64urldl}.sha && \ - sha256sum -c $(basename $arm64urldl).sha \ - && tar xfp $(basename $arm64urldl) -cd - +tc="${linarourl}/${arm64tc}/gcc-linaro-${linarover}-${_hostarch}_${arm64tc}.tar.xz" +gettc "$tc" "arm64"