From: Nishanth Menon <nm@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mkconfig: deny messed up ARCH definition
Date: Sat, 31 Oct 2009 16:12:01 +0200 [thread overview]
Message-ID: <1256998321-17270-1-git-send-email-nm@ti.com> (raw)
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
next reply other threads:[~2009-10-31 14:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 14:12 Nishanth Menon [this message]
2009-10-31 21:40 ` [U-Boot] [PATCH] mkconfig: deny messed up ARCH definition 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1256998321-17270-1-git-send-email-nm@ti.com \
--to=nm@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox