[PATCH] Add Blackfin arch to build system

Mike Frysinger vapier at gentoo.org
Mon Jun 18 00:14:21 PDT 2007


On Monday 18 June 2007, Alex Landau wrote:
> --- 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.

it's part of the default release ... the main package includes both 
bfin-uclinux and bfin-linux-uclibc

> 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"...

i'm not forcing anything ... the current system works for both

FDPIC ELF:
make CROSS_COMPILE=bfin-linux-uclibc-
FLAT:
LDFLAGS=-Wl,-elf2flt make CROSS_COMPILE=bfin-uclinux-
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://busybox.net/lists/busybox/attachments/20070618/16b01f9d/attachment.pgp 


More information about the busybox mailing list