[oe] Where do I override DISTRO_FEATURES?

Thilo Fromm fromm at dresearch-fe.de
Tue May 15 16:44:10 UTC 2012


Hello,

>> 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.

I see. Fortunately I can require conf/distro/angstrom-v2012.x.conf in
my own distro config file.

> Ultimately you shouldn't really do this. If you want to change distro policy
> then you really ought to have your own distro configuration, or try to work
> with the existing distro to fix whatever problem exists.

It's a backwards compatibility thing: we're bound to gcc-4.5 (we have
kernel build issues with newer gcc versions; we're nailed to
linux-2.6.37 thanks to lack of support by Texas Instruments) which
fails to detect the correct version of binutils GOLD (LD would work)
and therefore misses critical features which break the build later on.
I won't, however, try to convince the Angstrom guys to further support
ancient toolchains and make gold optional again just because of TI's
laziness.

I'll try to set up a minimal config for a distribution based on
Angstrom, then, so I can fix up DISTRO_FEATURES. Thanks for your help,
Paul.

Regards,
Thilo

-- 
Dipl.-Ing (FH) Thilo Fromm, MSc., Embedded Systems Architect
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, D-10319 Berlin, Germany
Tel: +49 (30) 515 932 228   mailto:fromm at dresearch-fe.de
Fax: +49 (30) 515 932 77    http://www.dresearch.de
Amtsgericht: Berlin Charlottenburg, HRB 130120 B
Ust.-IDNr. DE273952058
Geschäftsführer: Dr. M. Weber, W. Mögle




More information about the Openembedded-devel mailing list