[Buildroot] [PATCH 8/9] blackfin: set GNU_TARGET_NAME accordingly

Gustavo Zacarias gustavo at zacarias.com.ar
Sun Jul 21 16:32:05 UTC 2013


On 07/21/2013 12:38 PM, Thomas Petazzoni wrote:

> Isn't the 'uclinux' OS part something that is not specific to Blackfin?
> I.e, should this rather be something like:
> 
> ifeq ($(BR2_USE_MMU),y)
> OS=linux
> else
> OS=uclinux
> endif

In theory, yes.
For blackfin, doesn't seem so.
Seems (caveat: no access to blackfin.uclinux.org IF it's even
documented, bizarre patches and so on) that for blackfin being MMU-less
across the whole arch it's used to select from FDPIC and FLAT*.
Again going to the source (gcc to be precise) we see that crtreloc.o
(for FDPIC targets) is used in gcc/config/bfin/linux.h (linux tuple),
and crtlibid (for FLAT targets, internal to gcc) is used in
gcc/config/bfin/uclinux.h
crtreloc.o is generated by uClibc only when doing FDPIC, and used by
'linux', and 'uclinux' doesn't do FDPIC (no linking with crtreloc.o)
hence FLAT.
Regards.



More information about the buildroot mailing list