make.sh: TARGET_ARCH has been replaced by BUILD_ARCH
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Nov 2017 12:24:38 +0000 (12:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Nov 2017 15:57:58 +0000 (15:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index a0be1ce..4609c29 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -767,14 +767,17 @@ if [ -f .config ]; then
        . .config
 fi
 
+# TARGET_ARCH is BUILD_ARCH now
+if [ -n "${TARGET_ARCH}" ]; then
+       BUILD_ARCH="${TARGET_ARCH}"
+       unset TARGET_ARCH
+fi
+
 # Get the amount of memory in this build system
 HOST_MEM=$(system_memory)
 
 if [ -n "${BUILD_ARCH}" ]; then
        configure_build "${BUILD_ARCH}"
-elif [ -n "${TARGET_ARCH}" ]; then
-       configure_build "${TARGET_ARCH}"
-       unset TARGET_ARCH
 else
        configure_build "default"
 fi