[OE-core] [RFC PATCH v5 1/2] base.bbclass: Add support to EXTRA_DISTRO_FEATURES

Otavio Salvador otavio at ossystems.com.br
Fri Aug 23 15:11:09 UTC 2013


On Fri, Aug 23, 2013 at 11:59 AM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> On Fri, 2013-08-23 at 11:48 -0300, Otavio Salvador wrote:
>> This allow the addition and removal of distro features easily. To add
>> a feature, use:
>>
>>  EXTRA_DISTRO_FEATURES += "wayland"
>>
>> and to remove, use '~' prefix, as:
>>
>>  EXTRA_DISTRO_FEATURES += "~x11"
>>
>> This code has been mostly copied from Mentor Graphics public layer but
>> changed the variable name for a more descriptive name. The original
>> code can be seen at user_feature.bbclass at:
>>
>>  http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor
>>
>> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
>
> I discussed this with Otavio. My personal view is that we should hold
> off this right now. The removal issues he ran into with poky have been
> addressed in other ways so there is less of an immediate issue.
>
> The better fix for this kind of problem is -=/=- or more likely _remove
> override support in bitbake. I did propose a _remove patch a while back
> but Chris has some valid concerns about it, I don't remember the details
> offhand. I'd much rather we focused on fixing that and getting that
> merged than trying to add this functionality to every variable.

Chris, do you know the problems Richard's patch has? I can take a look
and try to fix it so we can get this in for 1.5.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list