]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cargo-update-recipe-crates: add RECIPE_UPDATE_EXTRA_TASKS
authorTim Orling <tim.orling@konsulko.com>
Wed, 12 Jun 2024 17:33:22 +0000 (10:33 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Jun 2024 08:10:09 +0000 (09:10 +0100)
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>
meta/classes-recipe/cargo-update-recipe-crates.bbclass

index 8980137d02cfff3eea0a55b22427d9d6d04996bf..a19ce16b46740eca2d63c0e063ba147a7d940aff 100644 (file)
@@ -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}"