[OE-core] [PATCH v2] Introduce multiarch DISTRO_FEATURE

Khem Raj raj.khem at gmail.com
Thu Nov 24 17:36:21 UTC 2011


On (24/11/11 12:44), Julian Pidancet wrote:
> >> +def get_gcc_multiarch_setting(bb, d):
> >> +    if 'multiarch' in bb.data.getVar('DISTRO_FEATURES',d,1).split() :
> >> +        if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'i586', 'i686' ] :
> >> +            return "--enable-targets=all"
> >> +        if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'powerpc' ] :
> >> +            return "--enable-targets=powerpc64"
> >> +        if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'sparc' ] :
> >> +            return "--enable-targets=all"
> >> +    return ""

looking at above function can this be made into a single if statement
instead of 3

and we also need multiarch support in gdb recipes as well.

> >
> >
> > you forgot mips here
> >
> 
> mips and s390 are not yet supported in the gcc version that OE is using.

yes right forgot about that it will be in 4.7
> 
> -- 
> Julian

-- 
-Khem




More information about the Openembedded-core mailing list