diff mbox series

[meta-lts-mixins,kirkstone/rust,13/33] cargo-update-recipe-crates: add RECIPE_UPDATE_EXTRA_TASKS

Message ID 0c76af5478317e99b1bbd696dc4fb051df373890.1724874972.git.scott.murray@konsulko.com
State New
Headers show
Series Update to Rust 1.78.0 | expand

Commit Message

Scott Murray Aug. 28, 2024, 8:08 p.m. UTC
From: Tim Orling <tim.orling@konsulko.com>

When we upgrade a recipe that inherits cargo-update-recipe-crates and
the upstream Cargo.toml/Cargo.lock have been changed, we need to run
the update_crates task or else the devtool upgrade (and therefore
AUH upgrade) will fail.

Add "do_update_crates" task to RECIPE_UPDATE_EXTRA_TASKS for all
recipes that inherit this class.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 0156ab3e009fa789c629f6c0ab06fcf21add94f8)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
 classes/cargo-update-recipe-crates.bbclass | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/classes/cargo-update-recipe-crates.bbclass b/classes/cargo-update-recipe-crates.bbclass
index 5312264..12039f9 100644
--- a/classes/cargo-update-recipe-crates.bbclass
+++ b/classes/cargo-update-recipe-crates.bbclass
@@ -18,6 +18,8 @@  do_update_crates[depends] = "python3-native:do_populate_sysroot"
 do_update_crates[nostamp] = "1"
 do_update_crates[doc] = "Update the recipe by reading Cargo.lock and write in ${THISDIR}/${BPN}-crates.inc"
 
+RECIPE_UPDATE_EXTRA_TASKS += "do_update_crates"
+
 # The directory where to search for Cargo.lock files
 CARGO_LOCK_SRC_DIR ??= "${S}"