]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
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 a0be1ce6601a263e980a1fcc7462f062521b985b..4609c29772f05e3000c71aebdbf9e7a6bffca313 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