[oe] [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS = linux-gnuspe for e500

Phil Blundell philb at gnu.org
Sat Aug 29 08:53:24 UTC 2009


On Sat, 2009-08-29 at 01:33 -0700, Khem Raj wrote:
> TARGET_OS is really equivalent of TARGET_TRIPLET here and it is tied
> to system C library you choose.
> so logically it seems ok to me. You can also define it in distro confs but then
> you have to check like if LIBC == uclibc do one thing  else LIBC =
> glibc do other thing

Well, I dunno.  It seems like there are three parts to this
determination, really:

1) does the target hardware support SPE?
2) does the toolchain support it?
3) does the distro want to use it?

Of those, it seems fairly clear that (1) belongs in MACHINE.conf or some
similar place, and (3) belongs in DISTRO.conf or some part of it.  The
only one of these that's really tied to the C library would seem to be
(2), and even there I would have thought it would be better for the libc
to just raise an error if it doesn't support the selected options rather
than trying to guess what they should be.

The same thing applies to the ARM EABI, incidentally: the choice of
whether to use EABI or the old ABI ought to be one that's made primarily
(or entirely) by the DISTRO.  The current situation where parts of the
toolchain are guessing whether or not the EABI is wanted, based on
${MACHINE}, is somewhat unsatisfactory: it'd be perfectly legitimate,
for example, for a DISTRO to want to use eabi on h3900.  The current
EABI logic that resides in sane-toolchain-xxx.inc seems like it is
really a misplaced piece of Angstrom policy.

p.






More information about the Openembedded-devel mailing list