[U-Boot] [PATCH v2] mkconfig: deny messed up ARCH definition
Nishanth Menon
nm at ti.com
Mon Nov 2 16:40:18 CET 2009
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:
http://old.nabble.com/-U-Boot--Build-breaks-on-some-OMAP3-configs-to26132721.html
Inputs from: Mike Frysinger and Wolfgang Denk:
http://lists.denx.de/pipermail/u-boot/2009-November/063642.html
Cc: Wolfgang Denk <wd at denx.de>
Cc: Mike Frysinger <vapier at gentoo.org>
Cc: Anand Gadiyar <gadiyar at ti.com>
Cc: Dirk Behme <dirk.behme at googlemail.com>
Signed-off-by: Nishanth Menon <nm at ti.com>
---
mkconfig | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/mkconfig b/mkconfig
index 4c5675b..1075510 100755
--- 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..."
#
--
1.6.3.3
More information about the U-Boot
mailing list