[oe] [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Khem Raj
raj.khem at gmail.com
Mon Aug 31 18:57:32 UTC 2009
On (31/08/09 13:33), Marcin Juszkiewicz wrote:
> What about using MACHINE_FEATURES (or CPU_FEATURES) for things like eabi/spe?
yes that is a very good idea.
>
> TARGET_OS = "linux-"
> if ARCH in [ppc,powerpc] and MACHINE_FEATURES.find('spe') then
>
> if LIBC=uclibc then
> TARGET_OS += "uclibc"
> fi
>
> TARGET_OS += "gnuspe"
> fi
>
> Same for adding eabi:
>
> TARGET_OS = "linux-"
> if ARCH in [arm,armeb] and MACHINE_FEATURES.find('eabi') then
>
> if LIBC=uclibc then
> TARGET_OS += "uclibc"
> fi
>
> TARGET_OS += "gnueabi"
> fi
>
> spe/eabi can be added to MACHINE_FEATURES in conf/machine/include/tune-* files
> and distros can choose do they support it or not by DISTRO_FEATURES (examples
> needs to be changed then to use COMBINED_FEATURES variable). This way no one
> has to change XY files just because he has new board with ppc500v2 core, we do
> not have to remember about armv4 devices which are not capable of EABI with
> gcc 4.3.x and older (but if they will support EABI in future we just change
> tune-strongarm.inc file).
seems a nice approach. Let me try to implement something on these lines.
>
> Regards,
> --
> JID: hrw at jabber.org
> Website: http://marcin.juszkiewicz.com.pl/
> LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list