]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Add a message that the toolchain can't build on ipfire.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 13 Nov 2010 11:02:01 +0000 (12:02 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 13 Nov 2010 11:02:01 +0000 (12:02 +0100)
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