* [U-Boot] [PATCH v2] mkconfig: deny messed up ARCH definition
[not found] <[PATCH] mkconfig: deny messed up ARCH definition>
@ 2009-11-02 15:40 ` Nishanth Menon
2009-11-24 22:37 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Menon @ 2009-11-02 15:40 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 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@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Anand Gadiyar <gadiyar@ti.com>
Cc: Dirk Behme <dirk.behme@googlemail.com>
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..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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH v2] mkconfig: deny messed up ARCH definition
2009-11-02 15:40 ` [U-Boot] [PATCH v2] mkconfig: deny messed up ARCH definition Nishanth Menon
@ 2009-11-24 22:37 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-11-24 22:37 UTC (permalink / raw)
To: u-boot
Dear Nishanth Menon,
In message <1257176418-11624-1-git-send-email-nm@ti.com> you wrote:
> 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@denx.de>
> Cc: Mike Frysinger <vapier@gentoo.org>
> Cc: Anand Gadiyar <gadiyar@ti.com>
> Cc: Dirk Behme <dirk.behme@googlemail.com>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> mkconfig | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Q: How do you tell if you're making love to a nurse, a school-
teacher, or an airline stewardess?
A: A nurse says: "This won't hurt a bit." A schoolteacher says:
"We're going to have to do this over and over again until we get
it right." An airline stewardess says: "Just hold this over your
mouth and nose, and breath normally."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-24 22:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <[PATCH] mkconfig: deny messed up ARCH definition>
2009-11-02 15:40 ` [U-Boot] [PATCH v2] mkconfig: deny messed up ARCH definition Nishanth Menon
2009-11-24 22:37 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.