make.sh: Allow to permanently set TARGET_ARCH in .config.

This commit is contained in:
Michael Tremer
2014-05-28 20:48:05 +02:00
parent 5930a368ad
commit 949544f5b3

View File

@@ -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)