[OE-core] [PATCH] Introduce biarch DISTRO_FEATURE

Khem Raj raj.khem at gmail.com
Fri Nov 18 20:39:35 UTC 2011


On Thu, Nov 10, 2011 at 5:43 AM, Julian Pidancet
<julian.pidancet at gmail.com> wrote:
> On 11/08/11 20:29, Richard Purdie wrote:
>>
>> I'm left wondering how useful the resulting compiler is to most users.
>> In most cases a user would expect full libc support and hence this is
>> likely to confuse them. I do appreciate people do have usecases for a
>> compiler that can handle the other bit format though.
>>
>
> Standard linux distros out there like debian or gentoo already ship a
> biarch gcc per default. It wouldn't seem odd to me if OE had an option
> to enable the generation of a biarch compiler.
>
>> I think my biggest worry is the "--enable-targets=all" option which may
>> or may not enable things we might not want enabled. I've not had a
>> chance to go and look at gcc and convince myself that piece is safe. The
>> other pieces looked less worrying.
>>
>
> In the patch, the --enable-targets=all is only active in the x86 case. I
> did not find any other way of enabling both -m32 and -m64 switches in gcc.

enable-target=all would sort of create a single toolchain for multlibs we have
but it needs to package the gcc runtime and building glibc accordingly
I cant say
it will be just harmless to enable it right now mips/powerpc/x86 are
architectures
that could do it in oe.

>
> I've been successfully using this patch to generate a complete x86 32bit
> distro with a 64bit Xen hypervisor (I believe the result would have been
> the same if I tried to compile a 64bit linux kernel). I did not have any
> issues with it so far.
>
> Cheers,
>
> --
> Julian
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>




More information about the Openembedded-core mailing list