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