Skip to content

add an SDK_FEATURES lever

Trevor Woerner openembedded-core 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- autobuilder.conf keeps += rather than switching to :append

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bitbake.conf: add an SDK_FEATURES levermeta/conf/bitbake.conf meta/conf/documentation.conf+2 -00 replies
2/2sdk: fold SDK_TOOLCHAIN_LANGS into SDK_FEATURESmeta/classes-recipe/populate_sdk_base.bbclass meta/conf/bitbake.conf meta/conf/fragments/yocto-autobuilder/autobuilder.conf +1 more+13 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] add an SDK_FEATURES lever

SDK contents are close to all-or-nothing today. The one lever that exists, SDK_TOOLCHAIN_LANGS, has the right shape but only ever covered languages.

Add SDK_FEATURES, in the spirit of DISTRO_FEATURES and IMAGE_FEATURES, and fold SDK_TOOLCHAIN_LANGS into it. BB_RENAMED_VARIABLES keeps the old name working.

Every SDK_FEATURES test resolves inside TOOLCHAIN_HOST_TASK and TOOLCHAIN_TARGET_TASK, which are packagegroup lists read at populate_sdk time. Nothing in a compiler's configure ever sees SDK_FEATURES, so changing it rebuilds no toolchain and two SDKs with different features share everything underneath. That property is the point of the design and the rest of this work depends on it.

This changes no existing SDK: SDK_FEATURES defaults to empty, and BB_RENAMED_VARIABLES maps SDK_TOOLCHAIN_LANGS onto it so configurations still using the old name keep working.

Changes in v2:
- autobuilder.conf keeps += rather than switching to :append

Trevor Woerner (2):
bitbake.conf: add an SDK_FEATURES lever
sdk: fold SDK_TOOLCHAIN_LANGS into SDK_FEATURES

 meta/classes-recipe/populate_sdk_base.bbclass | 21 +++++++++----------
 meta/conf/bitbake.conf                        |  2 ++
 meta/conf/documentation.conf                  |  1 +
 .../yocto-autobuilder/autobuilder.conf        |  2 +-
 .../packagegroups/packagegroup-core-sdk.bb    |  2 +-
 5 files changed, 15 insertions(+), 13 deletions(-)
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a