mbox series

[0/4] bitbake-setup: extra-remotes support for contrib push mirrors

Message ID 20260406202430.1856836-1-adrian.freihofer@siemens.com
Headers show
Series bitbake-setup: extra-remotes support for contrib push mirrors | expand

Message

AdrianF April 6, 2026, 8:24 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

This series contains one small fix and a new feature that may warrant
discussion before merging.

Fix (likely uncontroversial):
  bitbake-setup: update vscode workspace always

  The vscode workspace file is now updated unconditionally so that a
  manually changed build directory is always reflected. Previously it
  was skipped when the registry configuration had not changed.

New feature (may need discussion / could be postponed):
  bitbake-setup: add support for extra-remotes in layer sources
  bitbake-setup: add contrib extra-remotes to default-registry configs
  bitbake-selftest: setup: add test_extra_remotes

  Adds an 'extra-remotes' property to git-remote source definitions so
  that additional git remotes (e.g. SSH push mirrors) can be configured
  in checked-out repositories after checkout, without affecting fetch or
  change detection.

  A new --extra-remotes-filter option controls which remotes are added:
    non-optional (default), all, none, or comma-separated names.

  The default-registry entries for bitbake, openembedded-core, and
  meta-yocto are extended with optional 'contrib' extra-remotes pointing
  to the SSH push mirrors on push.openembedded.org.

  Self-tests cover all filter variants and the re-apply/update behaviour.

Adrian Freihofer (4):
  bitbake-setup: update vscode workspace always
  bitbake-setup: add support for extra-remotes in layer sources
  bitbake-setup: add contrib extra-remotes to default-registry configs
  bitbake-selftest: setup: add test_extra_remotes

 bin/bitbake-setup                             |  87 +++++++++++++-
 .../oe-nodistro-master.conf.json              |  16 ++-
 .../oe-nodistro-whinlatter.conf.json          |  16 ++-
 .../configurations/poky-master.conf.json      |  24 +++-
 .../configurations/poky-whinlatter.conf.json  |  24 +++-
 lib/bb/tests/setup.py                         | 107 ++++++++++++++++++
 setup-schema/layers.schema.json               |  22 ++++
 7 files changed, 280 insertions(+), 16 deletions(-)

Comments

Alexander Kanavin April 7, 2026, 6:28 p.m. UTC | #1
On Mon, 6 Apr 2026 at 22:24, Adrian Freihofer via
lists.openembedded.org
<adrian.freihofer=siemens.com@lists.openembedded.org> wrote:
> This series contains one small fix and a new feature that may warrant
> discussion before merging.
>
> Fix (likely uncontroversial):
>   bitbake-setup: update vscode workspace always
>
>   The vscode workspace file is now updated unconditionally so that a
>   manually changed build directory is always reflected. Previously it
>   was skipped when the registry configuration had not changed.
>
> New feature (may need discussion / could be postponed):
>   bitbake-setup: add support for extra-remotes in layer sources
>   bitbake-setup: add contrib extra-remotes to default-registry configs
>   bitbake-selftest: setup: add test_extra_remotes

Please do not bundle fixes and RFC proposals like that. Send one as
regular patch, then the other as RFC set.

Alex