[oe] Where do I override DISTRO_FEATURES?

Denys Dmytriyenko denis at denix.org
Tue May 15 20:19:53 UTC 2012


On Tue, May 15, 2012 at 05:23:43PM +0100, Paul Eggleton wrote:
> On Tuesday 15 May 2012 18:12:35 Thilo Fromm wrote:
> > I'm trying to remove an element from DISTRO_FEATURES (specifically
> > "ld-is-gold"), but I am unable to find the right spot to do it. The
> > distribution we're using (Angstrom, as it happens) sets this in
> > conf/distro/angstrom-v2012.x.conf. My machine configuration is the
> > wrong spot to modify DISTRO_FEATURES, since it will be processed
> > first. local.conf is not working, too.
> > 
> > So could anybody please tell me where I need to put my
> > 
> > DISTRO_FEATURES = "${@'${DISTRO_FEATURES}}'.replace('ld-is-gold',  '')}"
> > 
> > so it applies for the build?
> 
> Unfortunately such hacks only work for variables that are not set within the 
> distro configuration, which is applied after local.conf.

Well, while still being an ugly hack, this should still be possible using 
local overrides... I.e. VAR_local in OE or VAR_forcevariable in OE-core/Yocto. 
You may need to use immediate assignment to avoid circular dependency, though.

-- 
Denys




More information about the Openembedded-devel mailing list