mbox series

[v4,0/3] Add support for multi Cargo.lock files

Message ID 20261130-mfe-multi-cargo-lock-files-v4-0-a3ebce5cc283@pengutronix.de
Headers show
Series Add support for multi Cargo.lock files | expand

Message

Marco Felsch Nov. 30, 2026, 8:40 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 and adds
support to parse the Cargo.lock v1 file format.

Regards,
Marco

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
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 (3):
      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: support multiple Cargo.lock search directories

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

Best regards,