From: Mike Frysinger Date: Mon, 17 Aug 2009 16:15:44 -0400 Subject: [U-Boot] [PATCH] Fix all linker scripts for older binutils versions (pre-2.16) In-Reply-To: <20090817193130.2E2F6833DBD2@gemini.denx.de> References: <1250510453-30567-1-git-send-email-wd@denx.de> <200908171514.54018.vapier@gentoo.org> <20090817193130.2E2F6833DBD2@gemini.denx.de> Message-ID: <200908171615.45626.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 Monday 17 August 2009 15:31:30 Wolfgang Denk wrote: > Mike wrote: > > > Mike, I am aware that Blackfin is already using the C preprocessor to > > > generate it's linker scripts. I guess this step can now be folded into > > > this general mechanism. Do you want to provide such a patch, or shall > > > I do it? > > > > toolchains that are older than binutils-2.17 wont work with the Blackfin > > port, so compatibility with pre-2.16 isnt something this port needs to > > worry about > > Agreed, but the cpp step is now _always_ performed, and in your case > twice - first in your board directory, and then again by the top level > Makefile. You could save the local run now. ok, i missed that aspect. i think the changes needed are: lib_blackfin/Makefile: -$(obj)u-boot.lds: u-boot.lds.S - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@ lib_blackfin/config.mk: -LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds +LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds.S i can post a patch once yours gets merged -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/20090817/05d6cb28/attachment.pgp