]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cargo: pass PACKAGECONFIG_CONFARGS to cargo build
authorJean-Pierre Geslin <jarsoper@gmail.com>
Wed, 19 Mar 2025 20:59:09 +0000 (21:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Mar 2025 11:29:00 +0000 (11:29 +0000)
In order to allow rust packages to define PACKAGECONFIG options, append
the contents of PACKAGECONFIG_CONFARGS to the build command.
This patch was already submitted by Bartosz Golaszewski on older
version but was never merged. It will be really usefull for Rust recipes.

Signed-off-by: Jean-Pierre Geslin <jarsoper@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cargo.bbclass

index 76a39668c7d26267b0e5c7ee666e45be6948ef28..461d100dd96807458e6b11002de27ae45c6e2cb7 100644 (file)
@@ -48,7 +48,7 @@ oe_cargo_build () {
        bbnote "Using rust targets from ${RUST_TARGET_PATH}"
        bbnote "cargo = $(which ${CARGO})"
        bbnote "${CARGO} build ${CARGO_BUILD_FLAGS} $@"
-       "${CARGO}" build ${CARGO_BUILD_FLAGS} "$@"
+       "${CARGO}" build ${CARGO_BUILD_FLAGS} ${PACKAGECONFIG_CONFARGS} "$@"
 }
 
 do_compile[progress] = "outof:\s+(\d+)/(\d+)"