From mboxrd@z Thu Jan 1 00:00:00 1970 From: Menon, Nishanth Date: Sat, 31 Oct 2009 15:57:29 +0200 Subject: [U-Boot] Build breaks on some OMAP3 configs In-Reply-To: <4AEC367E.1030908@gmail.com> References: <5A47E75E594F054BAF48C5E4FC4B92AB0309DAC213@dbde02.ent.ti.com> <4AEB4DC5.9040302@gmail.com> <20091030213505.520C83F6F5@gemini.denx.de> <4AEC367E.1030908@gmail.com> Message-ID: <4AEC4249.20108@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Nishanth Menon said the following on 10/31/2009 03:07 PM: > Wolfgang Denk said the following on 10/30/2009 11:35 PM: > >> Dear Nishanth Menon, >> >> In message <4AEB4DC5.9040302@gmail.com> you wrote: >> >> >>> for some wierd reason, it does not seem to take the include/config.mk >>> file (where the defines are present).. >>> >>> now, if i do a local clone of the cloned directory, it builds just fine! >>> gotta dig at it a little more.. >>> >>> >> Maybe some files have been stored on or transferred through a Windoze >> system which messed up the line endings with CR-LF sequences? >> >> >> > Nope, I cloned(the direct clone from git.denx) direct to my linux laptop > - amd64, dual core ubuntu 9.10. > > Got the problem! duh.. I had ARCH=ARM instead of ARCH=arm in my alias!!! "make -p" helped catch it... all is well now.. proper alias is now: alias mymake='make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- V=1' even better: I dont need to use the ARCH=arm in my alias anymore.. so to prevent dumb asses like me, will send out a patch: 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..." # Regards, Nishanth Menon