]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - make.sh
Add a message that the toolchain can't build on ipfire.
[ipfire-2.x.git] / make.sh
diff --git a/make.sh b/make.sh
index 4c7be21a6ca3856a119f1126b2c53a16f4e5552c..4bec05b9bf29432da98900b08047e451ebe41e26 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -234,9 +234,12 @@ prepareenv() {
 }
 
 buildtoolchain() {
-    if [ "$MACHINE" = "x86_64" ]; then
+    if [ "$(uname -m)" = "x86_64" ]; then
         exiterror "Cannot build toolchain on x86_64. Please use the download."
     fi
+    if [ "$(uname -r | grep ipfire)" ]; then
+        exiterror "Cannot build toolchain on ipfire. Please use the download."
+    fi
 
     LOGFILE="$BASEDIR/log/_build.toolchain.log"
     export LOGFILE