diff options
author | Nishanth Menon <nm@ti.com> | 2009-11-02 09:40:18 -0600 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-11-24 23:37:00 +0100 |
commit | a8fa379d47f06c7d3ed75c8fb26ae43ee38e1fd7 (patch) | |
tree | 22ea58c486b6884ba4b3910e40f111add63b8290 /mkconfig | |
parent | 5a1b1f36dab86668aaeead61198779d2bca35d2e (diff) | |
download | u-boot-imx-a8fa379d47f06c7d3ed75c8fb26ae43ee38e1fd7.zip u-boot-imx-a8fa379d47f06c7d3ed75c8fb26ae43ee38e1fd7.tar.gz u-boot-imx-a8fa379d47f06c7d3ed75c8fb26ae43ee38e1fd7.tar.bz2 |
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:
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>
Diffstat (limited to 'mkconfig')
-rwxr-xr-x | mkconfig | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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..." # |