| Message ID | 20260804165803.598030-6-ross.burton@arm.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | [1/9] classes/cargo_common: move PKG_CONFIG_ALLOW_CROSS export to oe_cargo_fix_env | expand |
diff --git a/meta/classes-recipe/cargo_c.bbclass b/meta/classes-recipe/cargo_c.bbclass index e91ee1d9fc0..18574b73cb2 100644 --- a/meta/classes-recipe/cargo_c.bbclass +++ b/meta/classes-recipe/cargo_c.bbclass @@ -9,7 +9,7 @@ ## This class is used by any recipes that want to compile a C ABI compatible ## library with header and pkg config file -inherit cargo pkgconfig +inherit cargo_common pkgconfig # the binaries we will use CARGO_C_BUILD = "cargo-cbuild" @@ -18,6 +18,8 @@ CARGO_C_INSTALL = "cargo-cinstall" # We need cargo-c to compile for the target BASEDEPENDS:append = " cargo-c-native" +B = "${WORKDIR}/build" + do_compile[progress] = "outof:\s+(\d+)/(\d+)" cargo_c_do_compile() { oe_cargo_fix_env
This class is an alternative to cargo.bbclass, and now the dependencies have moved to cargo_common.bbclass it can inherit that class directly. As cargo.bbclass sets B, we can set it in cargo_c.bbclass. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/classes-recipe/cargo_c.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)