]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - mkconfig
Merge branch 'master' into next
[people/ms/u-boot.git] / mkconfig
index bdc9d91d17198cd3e2d5252a8bdae902ff14bff2..27d9f2bac7ca500f51a771000030d42081c8be3b 100755 (executable)
--- a/mkconfig
+++ b/mkconfig
@@ -27,6 +27,11 @@ done
 [ $# -lt 4 ] && exit 1
 [ $# -gt 6 ] && exit 1
 
+if [ "${ARCH}" -a "${ARCH}" != "$2" ]; then
+       echo "Failed: \$ARCH=${ARCH}, should be '$2' for ${BOARD_NAME}" 1>&2
+       exit 1
+fi
+
 echo "Configuring for ${BOARD_NAME} board..."
 
 #