From: Michael Tremer Date: Wed, 28 May 2014 18:48:05 +0000 (+0200) Subject: make.sh: Allow to permanently set TARGET_ARCH in .config. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=949544f5b36ee1ba45c71f96c8d1aefb3e49ce84;hp=5930a368ad783c21e4e5542aea64561f409cbd68 make.sh: Allow to permanently set TARGET_ARCH in .config. --- diff --git a/make.sh b/make.sh index 37339edc6..40717c99d 100755 --- 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)