- check for clean environment variables ARCH, CROSS_COMPILE, GREP_OPTIONS
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 26 Jun 2007 13:26:51 +0000 (13:26 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 26 Jun 2007 13:26:51 +0000 (13:26 -0000)
toolchain/dependencies/dependencies.sh

index ec005d8a2100b3c43af360d1a8cefc9e1dd279d9..d1bccd247a324c833ed5820e08bc3478cd7b20c1 100755 (executable)
@@ -61,6 +61,28 @@ if test -n "$CXXFLAGS" ; then
 fi;
 echo "CXXFLAGS clean:                                  Ok"
 
+if test -n "$GREP_OPTIONS" ; then
+        echo "GREP_OPTIONS clean:                               FALSE"
+        /bin/echo -e "\n\nYou must run 'unset GREP_OPTIONS' so buildroot can run with";
+        /bin/echo -e "a clean environment on your build machine\n";
+        exit 1;
+fi;
+
+if test -n "$CROSS_COMPILE" ; then
+        echo "CROSS_COMPILE clean:                               FALSE"
+        /bin/echo -e "\n\nYou must run 'unset CROSS_COMPILE' so buildroot can run with";
+        /bin/echo -e "a clean environment on your build machine\n";
+        exit 1;
+fi;
+
+if test -n "$ARCH" ; then
+        echo "ARCH clean:                               FALSE"
+        /bin/echo -e "\n\nYou must run 'unset ARCH' so buildroot can run with";
+        /bin/echo -e "a clean environment on your build machine\n";
+        exit 1;
+fi;
+
+
 echo "WORKS" | grep "WORKS" >/dev/null 2>&1
 if test $? != 0 ; then
        echo "grep works:                               FALSE"