mbox series

[v5,0/4] Add support for multi Cargo.lock files

Message ID 20261201-mfe-multi-cargo-lock-files-v5-0-6c4eae24ec27@pengutronix.de
Headers show
Series Add support for multi Cargo.lock files | expand

Message

Marco Felsch Dec. 1, 2026, 4:21 p.m. UTC
Hi,

the main purpose of this series is to add support to reference multiple
Cargo.lock files which is handy once a recipe want to rebuild the
std-crate for minimized special purpose builds.

In addition to this, the series improves the warning printing, adds
support to parse the Cargo.lock v1 file format and makes Cargo.lock
search order deterministic.

Regards,
Marco

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
Changes in v5:
- Link to v4: https://lore.kernel.org/r/20261130-mfe-multi-cargo-lock-files-v4-0-a3ebce5cc283@pengutronix.de
- Add new patch-3 to make Cargo.lock search order deterministic
- Fix empty CARGO_LOCK_SRC_DIR handling
- Add do_prepare_recipe_sysroot to addtask list
- Add check to ensure each listed CARGO_LOCK_SRC_DIR directory exists
- Fail if CARGO_LOCK_SRC_DIR listed dirs which don't have a Cargo.lock
  file

Changes in v4:
- Link to v3: https://lore.kernel.org/r/20261126-mfe-multi-cargo-lock-files-v3-1-7ee885214204@pengutronix.de
- Add new patch-1 to convert printf to bb.warn()
- make use of bb.warn() to print warnings
- split patches into patch-2 and patch-3
- add the checksum to seen list only if the checksum exists

Changes in v3:
- Link to v2: https://lore.kernel.org/r/20261124-mfe-multi-cargo-lock-files-v2-1-8fd15cf316aa@pengutronix.de
- Convert to space-separated list to simplify :remove handling and align
  with standard bitbake behavior

Changes in v2:
- Link to v1: https://lore.kernel.org/r/20261021-mfe-multi-cargo-lock-files-v1-0-d3510d4ad963@pengutronix.de
- Drop mainlined fixes patch
- Re-use CARGO_LOCK_SRC_DIR to make it backportable
- Add support for v1 Cargo.lock file format

---
Marco Felsch (4):
      classes/cargo-update-recipe-crates: use bb.warn() instead of print()
      classes/cargo-update-recipe-crates: support v1 Cargo.lock format
      classes/cargo-update-recipe-crates: make Cargo.lock search order deterministic
      classes/cargo-update-recipe-crates: support multiple Cargo.lock search directories

 .../cargo-update-recipe-crates.bbclass             | 109 +++++++++++++++------
 1 file changed, 81 insertions(+), 28 deletions(-)
---
base-commit: 7412d08ab2ee94354a93f3765b94479d84c6b034
change-id: 20261021-mfe-multi-cargo-lock-files-41f9aea21595

Best regards,