]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - make.sh
make.sh: TARGET_ARCH has been replaced by BUILD_ARCH
[ipfire-2.x.git] / 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