From: Mike Frysinger Date: Fri, 5 Feb 2010 19:01:39 -0500 Subject: [U-Boot] [PATCH] Makefile: remove symbolic links in tools/ In-Reply-To: <20100205234937.GA13203@morgana.gnudd.com> References: <20100205234937.GA13203@morgana.gnudd.com> Message-ID: <201002051901.40621.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 05 February 2010 18:49:37 Alessandro Rubini wrote: > Older versions created symbolic links for e.g. crc32.c. > If such link remains in a tree, current Makefiles will use CC > instead of HOSTCC to compile it; this results in a linker error. > To be safe, let's remove any link from earlier checkouts. current policy is to run `git clean -x -d` after a `git pull`, but i dont care either way > --- a/Makefile > +++ b/Makefile > @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f > @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f > @[ ! -d $(obj)tools ] || find $(obj)tools -name "*" -type l -print | xargs rm -f not related directly to your patch, but these -name '*' are useless also, why not just scan the entire tree: @[ ! -d $(obj) ] || find $(obj) -type l -print | xargs rm -f -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20100205/a01ed65b/attachment.pgp