mbox series

[v3,0/2] bitbake-setup: update: add a --update-bb-conf option

Message ID 20251117-bitbake-setup-conf-updates-v3-0-46cdf826e79c@bootlin.com
Headers show
Series bitbake-setup: update: add a --update-bb-conf option | expand

Message

Antonin Godard Nov. 17, 2025, 12:52 p.m. UTC
Signed-off-by: Antonin Godard <antonin.godard@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                                  | 58 ++++++++++++++++------
 .../bitbake-user-manual-environment-setup.rst      |  8 +++
 lib/bb/tests/setup.py                              | 41 +++++++++++++--
 3 files changed, 89 insertions(+), 18 deletions(-)
---
base-commit: ae9a70c919f14ca323eb7c03ef9080fd0bd52c29
change-id: 20251114-bitbake-setup-conf-updates-91ae4efa86ae