X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=make.sh;h=415c19588a503d8e208372dc639adb58ad5114a9;hp=8b9f48a2ba47d706ea6e86c0b726725adb81da55;hb=f13d4e0b09e9aa8f8a47b402438848deaf5a26d1;hpb=8bd492fd495cdf954d65052bc1470a08cd13fbd8 diff --git a/make.sh b/make.sh index 8b9f48a2ba..415c19588a 100755 --- a/make.sh +++ b/make.sh @@ -229,9 +229,28 @@ prepareenv() { } buildtoolchain() { - if [ "$(uname -m)" = "x86_64" ]; then - exiterror "Cannot build toolchain on x86_64. Please use the download." - fi + local error=false + case "${MACHINE}:$(uname -m)" in + # x86 + i586:i586|i586:i686) + # These are working. + ;; + i586:*) + error=true + ;; + + # ARM + armv5tel:armv5tel|armv5tel:armv5tejl) + # These are working. + ;; + armv5tel:*) + error=true + ;; + esac + + ${error} && \ + exiterror "Cannot build ${MACHINE} toolchain on $(uname -m). Please use the download if any." + if [ "$(uname -r | grep ipfire)" ]; then exiterror "Cannot build toolchain on ipfire. Please use the download." fi