public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mkconfig: deny messed up ARCH definition
@ 2009-10-31 14:12 Nishanth Menon
  2009-10-31 21:40 ` Mike Frysinger
  0 siblings, 1 reply; 6+ messages in thread
From: Nishanth Menon @ 2009-10-31 14:12 UTC (permalink / raw)
  To: u-boot

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 thier builds

Reported in thread:
http://old.nabble.com/-U-Boot--Build-breaks-on-some-OMAP3-configs-to26132721.html

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 mkconfig |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/mkconfig b/mkconfig
index 4c5675b..87ac6d4 100755
--- a/mkconfig
+++ b/mkconfig
@@ -27,6 +27,11 @@ done
 [ $# -lt 4 ] && exit 1
 [ $# -gt 6 ] && exit 1
 
+if [ ! -z "$ARCH" -a "$ARCH" != "$2" ]; then
+	echo "ARCH=$ARCH while ${BOARD_NAME} arch=$2: fail" 
+	exit 1
+fi
+
 echo "Configuring for ${BOARD_NAME} board..."
 
 #
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-02 15:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-31 14:12 [U-Boot] [PATCH] mkconfig: deny messed up ARCH definition Nishanth Menon
2009-10-31 21:40 ` Mike Frysinger
2009-10-31 22:20   ` Menon, Nishanth
2009-11-01 13:38     ` Mike Frysinger
2009-11-01 14:57       ` Wolfgang Denk
2009-11-02 15:26         ` Menon, Nishanth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox