Commit a8fa379d authored by Nishanth Menon's avatar Nishanth Menon Committed by Wolfgang Denk

mkconfig: deny messed up ARCH definition

Refuse to setup a platform if the command line ARCH= is not the same
as the one required for the board. This prevents any user with
prehistoric aliases from messing up their builds.

Reported in thread:

Inputs from: Mike Frysinger and Wolfgang Denk:

Cc: Wolfgang Denk <>
Cc: Mike Frysinger <>
Cc: Anand Gadiyar <>
Cc: Dirk Behme <>
Signed-off-by: default avatarNishanth Menon <>
parent 5a1b1f36
......@@ -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
echo "Configuring for ${BOARD_NAME} board..."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment