]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - make.sh
make.sh: Allow to permanently set TARGET_ARCH in .config.
[ipfire-2.x.git] / make.sh
diff --git a/make.sh b/make.sh
index 37339edc63b9d5963277f78ab811b83fbb63e88a..40717c99d8cc5a512431bd244be3b032ea637c12 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)