]> git.ipfire.org Git - people/ms/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 12:24:38 +0000 (12:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 0f0bbb2a8aa18da5bc0e3fccb043872fa44f3345..87fb962d31eb3e60d64919f94f11b0c61acc9100 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