]> code.ossystems Code Review - openembedded-core.git/commit
distrooverrides.bbclass: DISTRO_FEATURES as overrides
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 14 Jun 2017 10:33:50 +0000 (12:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Jun 2017 13:45:01 +0000 (14:45 +0100)
commite982ca7f2d4fb0aef3fedc00af1e90f613e7b5ee
treefd4fe1659f1d723d7ee71ae273a11f8e6a623176
parent0c6e4a14ba8d9d9701ec16ffe46d618f41633571
distrooverrides.bbclass: DISTRO_FEATURES as overrides

This achieves the same goal as the same change to bitbake.conf itself,
but because the class gets added later as part expanding INHERIT, this
new approach is less likely to run into problems when DISTRO_FEATURES
contains complex code.

Another difference is that the class currently does not get inherited
by default and thus is completely absent from a build unless some
layer or include file adds it to INHERIT.

Compared to the earlier code in bitbake.conf and a similar class in
intel-iot-refkit, additional overrides now get sorted. This makes the
final OVERRIDES more deterministic.

The lessons learned about unintentionally depending on OVERRIDES are
documented in the class because such problems are more likely to show
up as unexpected signature differences when using this class.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/distrooverrides.bbclass [new file with mode: 0644]