]> code.ossystems Code Review - openembedded-core.git/commit
bitbake.conf: DISTRO_FEATURES as overrides
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jun 2017 13:04:03 +0000 (15:04 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Jun 2017 14:04:12 +0000 (15:04 +0100)
commit3b3ae91a22d6f685e804df4f32cdeebe1bd6bd88
treecfabf9d8949350bab93854423994a2c9dc866e61
parent9c91df324dfe58273f5a1d1d33dba1d34a180db7
bitbake.conf: DISTRO_FEATURES as overrides

As discussed in "[Openembedded-architecture] Yocto Compatible 2.0 +
signature changes", changes in .bbappend must depend on some explicit
configuration change, typically selecting a distro feature.

For _append and _remove, adding an override that is set only when the
corresponding entry is in DISTRO_FEATURES achieves that:

In local.conf:
  DISTRO_FEATURES_append = " my-distro-feature"

In layer.conf:
  DISTRO_FEATURES_OVERRIDES += "my-distro-feature"

In a .bbappend:
  do_install_append_df-my-distro-feature () {
       ...
  }

The subset of DISTRO_FEATURES that are made available as overrides
must be configured explicitly because using them this way should
be a conscious decision.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf