]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
meta: Support opting out of any distro features
authorPaul Barker <paul@pbarker.dev>
Wed, 1 Apr 2026 17:41:57 +0000 (18:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Apr 2026 12:10:36 +0000 (13:10 +0100)
commit159148f4de2595556fef6e8678578df83383857b
treed0e4179b678dd713f1652836475c3e602dc9df25
parent20322406a77b178a6655427612ed25e79b308b21
meta: Support opting out of any distro features

Add default values to DISTRO_FEATURES using the new
filter_default_features() function.

This change obsoletes the variables DISTRO_FEATURES_BACKFILL and
DISTRO_FEATURES_BACKFILL_CONSIDERED. Instead, all defaults are added via
DISTRO_FEATURES_DEFAULTS and users can opt out of any of these using
DISTRO_FEATURES_OPTED_OUT. Hopefully the variable naming here is easier
for people to understand and remember.

Migration notes:

- If you have previously assigned DISTRO_FEATURES without using
  DISTRO_FEATURES_DEFAULT, you will now get the default features added
  automatically. You will need to review these and add any features you
  do not want to use to DISTRO_FEATURES_OPTED_OUT.

- DISTRO_FEATURES_DEFAULT is now unused, the new variable name is
  slighlty different to ensure that it is not accidentally used if a
  layer hasn't been modified to adapt to the new naming.

- If you previously set DISTRO_FEATURES_BACKFILL_CONSIDERED, use the new
  variable DISTRO_FEATURES_OPTED_OUT instead.

- If you previously modified DISTRO_FEATURES_BACKFILL, don't do that.

Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/base.bbclass
meta/classes-recipe/crosssdk.bbclass
meta/classes-recipe/native.bbclass
meta/classes-recipe/nativesdk.bbclass
meta/conf/bitbake.conf
meta/conf/distro/include/default-distrovars.inc
meta/conf/distro/include/tclibc-musl.inc
meta/conf/distro/include/tclibc-newlib.inc
meta/conf/distro/include/tclibc-picolibc.inc
meta/conf/documentation.conf