Skip to content

bitbake-setup: update: add a --update-bb-conf option

Antonin Godard bitbake-devel yocto-docs 4 versions – In review

Get series with b4
b4 am 20251118-bitbake-setup-conf-updates-v4-0-7336b663bca6@bootlin.com change-id 20251114-bitbake-setup-conf-updates-91ae4efa86ae

Versions newest first

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 1 replySuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches4 repliesSuperseded

Changes in v4 from the cover letter

- Simplify argument passing in build_status(), as suggested by Alex
- Link to v3: https://lore.kernel.org/r/20251117-bitbake-setup-conf-updates-v3-0-46cdf826e79c@bootlin.com

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bitbake-setup: update: add a --update-bb-conf optionbin/bitbake-setup doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst lib/bb/tests/setup.py+49 -180 replies
2/2bitbake-selftest: setup: add test for --update-bb-conf=nolib/bb/tests/setup.py+35 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/2] bitbake-setup: update: add a --update-bb-conf option

---
Changes in v4:
- Simplify argument passing in build_status(), as suggested by Alex
- Link to v3: https://lore.kernel.org/r/20251117-bitbake-setup-conf-updates-v3-0-46cdf826e79c@bootlin.com

Changes in v3:
- bitbake-setup:
- Change the conf diff logic as suggested by Alex.
- Use args in build_status() to get update_bb_conf.
- Use get_diff() instead of git diff in _setup_bitbake_build()
- test:
- Use hashlib update() instead of file_digest() for
backwards-compatibility.
- When computing checkum check that the item returned by glob.glob is
a file and not a link (previously it would have tried to open a
directory).
- Link to v2: https://lore.kernel.org/r/20251117-bitbake-setup-conf-updates-v2-0-209637e01fbe@bootlin.com

Changes in v2:
- As suggested by Alex, Rework the logic to apply upstream configuration
changes first, then print the diff and ask the user whether to apply
or not (default behavior).
- Behavior can still be overridden with --update-bb-conf='yes/no/prompt'
- Link to v1: https://lore.kernel.org/r/20251114-bitbake-setup-conf-updates-v1-0-990583d8251b@bootlin.com

---
Antonin Godard (2):

      bitbake-setup: update: add a --update-bb-conf option
      bitbake-selftest: setup: add test for --update-bb-conf=no
 bin/bitbake-setup                                  | 53 ++++++++++++++++------
 .../bitbake-user-manual-environment-setup.rst      |  8 ++++
 lib/bb/tests/setup.py                              | 41 +++++++++++++++--
 3 files changed, 84 insertions(+), 18 deletions(-)

---
base-commit: ae9a70c919f14ca323eb7c03ef9080fd0bd52c29
change-id: 20251114-bitbake-setup-conf-updates-91ae4efa86ae