From: Wolfgang Denk Date: Mon, 17 Aug 2009 22:24:45 +0200 Subject: [U-Boot] [PATCH] Fix all linker scripts for older binutils versions (pre-2.16) In-Reply-To: <200908171615.45626.vapier@gentoo.org> References: <1250510453-30567-1-git-send-email-wd@denx.de> <200908171514.54018.vapier@gentoo.org> <20090817193130.2E2F6833DBD2@gemini.denx.de> <200908171615.45626.vapier@gentoo.org> Message-ID: <20090817202445.C64FE833DBD2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <200908171615.45626.vapier@gentoo.org> you wrote: > > > 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 Right. I just have no easy way to test this... > i can post a patch once yours gets merged Thanks a lot in advance. There is a slight difference, though - I'm calling CPP with the "-ansi" switch to make sure that all system-specific predefined macros outside the reserved namespace are suppressed, i. e. only those starting with double-underscores will be seen. I am pretty sure that this is actually what you want, too. 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 Our business is run on trust. We trust you will pay in advance.