make.sh: Allow to permanently set TARGET_ARCH in .config.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 May 2014 18:48:05 +0000 (20:48 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 May 2014 18:48:05 +0000 (20:48 +0200)
make.sh

diff --git a/make.sh b/make.sh
index 37339ed..40717c9 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -65,12 +65,16 @@ mkdir $BASEDIR/log/ 2>/dev/null
 # Include funtions
 . tools/make-functions
 
-configure_target "default"
-
 if [ -f .config ]; then
        . .config
 fi
 
+if [ -n "${TARGET_ARCH}" ]; then
+       configure_target "${TARGET_ARCH}"
+else
+       configure_target "default"
+fi
+
 if [ -z $EDITOR ]; then
        for i in nano emacs vi; do
                EDITOR=$(which $i 2>/dev/null)