[U-Boot] [PATCH] Add gc-section support for ARM

Tom Rini trini at ti.com
Thu May 17 20:53:12 CEST 2012


On Wed, May 16, 2012 at 10:45:33AM +1200, Charles Manning wrote:
> On Wednesday 16 May 2012 10:25:26 Wolfgang Denk wrote:
> > Dear Charles,
> >
> > In message <201205161007.59560.manningc2 at actrix.gen.nz> you wrote:
> > > On Tuesday 15 May 2012 17:12:05 Mike Frysinger wrote:
> >
> > ...
> >
> > > > current u-boot policy is to not introduce changes that knowingly break
> > > > other platforms.  so if you want to update the common arm config.mk,
> > > > you need to at least compile test all arm boards.
> >
> > ---------------------^^^^^^^^^^^^
> >
> > > Doesn't that makes it an impossible task? Not having all the boards makes
> > > it pretty hard to test them all.
> >
> > A compile test does not require any actual hardware.
> 
> Does the patch fail I submitted fail any compile tests?
> 
> AFAIK, it compiles but the resulting binary might just be rubbish on some 
> boards.
> 
> It worked fine on my overo board without any changes to the overo lds.
> 
> I have just verified that it builds on
> overo
> mx51evk
> davinci_sonata
> 
> If there is an expectation to build every possible config is there a script 
> that will do that?

Yes, MAKEALL in the top level.  Assuming you've installed ELDK5.1 or 4.2
to their default locations:
$ source /opt/eldk-5.1/armv7a/environment-setup-armv7a-vfp-neon-linux-gnueabi
$ CROSS_COMPILE=arm-linux-gnueabi- BUILD_DIR=eldk51 ./MAKEALL -a arm
$ CROSS_COMPILE=/opt/eldk-4.2/arm/usr/bin/arm-linux-gnueabi- BUILD_DIR=eldk42 ./MAKEALL -a arm

(I've got the above in a script with a few tweaks to build all TI stuff,
for example).

-- 
Tom


More information about the U-Boot mailing list