diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2024-06-12 10:33:22 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-13 09:11:17 +0100 |
| commit | 5676d39218097ac78a3a2335fd4f6bedd9dcf150 (patch) | |
| tree | a147dbb5bbc60c66d1c6eba6bfe555f719613ed6 | |
| parent | 82d07928fe03a80c2778c23931b200ab8aff43d1 (diff) | |
| download | poky-5676d39218097ac78a3a2335fd4f6bedd9dcf150.tar.gz | |
cargo-update-recipe-crates: add RECIPE_UPDATE_EXTRA_TASKS
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.
(From OE-Core rev: 0156ab3e009fa789c629f6c0ab06fcf21add94f8)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-recipe/cargo-update-recipe-crates.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-recipe/cargo-update-recipe-crates.bbclass b/meta/classes-recipe/cargo-update-recipe-crates.bbclass index 8980137d02..a19ce16b46 100644 --- a/meta/classes-recipe/cargo-update-recipe-crates.bbclass +++ b/meta/classes-recipe/cargo-update-recipe-crates.bbclass | |||
| @@ -18,6 +18,8 @@ do_update_crates[depends] = "python3-native:do_populate_sysroot" | |||
| 18 | do_update_crates[nostamp] = "1" | 18 | do_update_crates[nostamp] = "1" |
| 19 | do_update_crates[doc] = "Update the recipe by reading Cargo.lock and write in ${THISDIR}/${BPN}-crates.inc" | 19 | do_update_crates[doc] = "Update the recipe by reading Cargo.lock and write in ${THISDIR}/${BPN}-crates.inc" |
| 20 | 20 | ||
| 21 | RECIPE_UPDATE_EXTRA_TASKS += "do_update_crates" | ||
| 22 | |||
| 21 | # The directory where to search for Cargo.lock files | 23 | # The directory where to search for Cargo.lock files |
| 22 | CARGO_LOCK_SRC_DIR ??= "${S}" | 24 | CARGO_LOCK_SRC_DIR ??= "${S}" |
| 23 | 25 | ||
