[PATCH] Add Blackfin arch to build system

Alex Landau landau_alex at yahoo.com
Mon Jun 18 06:07:10 UTC 2007


--- Mike Frysinger <vapier at gentoo.org> wrote:

> On Sunday 17 June 2007, Alex Landau wrote:
> > Blackfin (and other no-MMU's too, I guess) use the bFLT file format instead
> > of (or in addition to) ELF, and therefore requires special LDFLAGS and not
> > stripping. The attached patch does exactly that. It adds a blackfin/
> > directory under arch/ with a Makefile handling these details.
> >
> > Builds of busybox with "make" won't be affected, those with "make
> > ARCH=blackfin CROSS_COMPILE=bfin-uclinux-" will.
> 
> erm, no, we dont want this.  Blackfin, unlike [almost] every no-MMU arch out 
> there, also supports FDPIC ELF via the bfin-linux-uclibc toolchain.

... which I haven't found in the release section of blackfin.uclinux.org for release
2007r1. Maybe I haven't looked well enough, though.
Anyway, since Blackfin supports bFLT, and almost all docs guide you how to compile ones
apps into bFLT, I don't see a reason to force people to use FDPIC ELFs (which are also
bigger in size, and don't support compression IIRC). If a simple make worked by producing
ELFs, it will continue to do so with the patch too, but those who want bFLT will be
satisfied too.
Alternatively, there are other solutions, like "make ARCH=blackfin" and "make
ARCH=blackfin-flt", or "make ARCH=blackfin" and "make ARCH=blackfin FORMAT=flt"...

> 
> > P.S. There is currently a call to elf2flt in the regular build system. It
> > does not work (again, at least for Blackfin) since elf2flt is not a
> > converter that takes an ELF and produces an FLT, but is instead invoked
> > internally by a linker wrapper script on an intermediate ELF with
> > relocations.
> 
> this would be the same for all no-MMU ports
> -mike
> 

Alex


       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  



More information about the busybox mailing list