summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Pierre Geslin <jarsoper@gmail.com>2025-03-19 21:59:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-20 11:29:04 +0000
commit7a2b9acef2aee730c7bdf641627428c70d3fbbbd (patch)
tree61e5278abc0f41f5bfc664260ac83fbec32b596a
parent271c5340a04c895d73667687bdb1bde3ed3df321 (diff)
downloadpoky-7a2b9acef2aee730c7bdf641627428c70d3fbbbd.tar.gz
cargo: pass PACKAGECONFIG_CONFARGS to cargo build
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. (From OE-Core rev: 16745b20452de60ae2474433cc1a2fb1ed9f6a64) Signed-off-by: Jean-Pierre Geslin <jarsoper@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/cargo.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/cargo.bbclass b/meta/classes-recipe/cargo.bbclass
index 76a39668c7..461d100dd9 100644
--- a/meta/classes-recipe/cargo.bbclass
+++ b/meta/classes-recipe/cargo.bbclass
@@ -48,7 +48,7 @@ oe_cargo_build () {
48 bbnote "Using rust targets from ${RUST_TARGET_PATH}" 48 bbnote "Using rust targets from ${RUST_TARGET_PATH}"
49 bbnote "cargo = $(which ${CARGO})" 49 bbnote "cargo = $(which ${CARGO})"
50 bbnote "${CARGO} build ${CARGO_BUILD_FLAGS} $@" 50 bbnote "${CARGO} build ${CARGO_BUILD_FLAGS} $@"
51 "${CARGO}" build ${CARGO_BUILD_FLAGS} "$@" 51 "${CARGO}" build ${CARGO_BUILD_FLAGS} ${PACKAGECONFIG_CONFARGS} "$@"
52} 52}
53 53
54do_compile[progress] = "outof:\s+(\d+)/(\d+)" 54do_compile[progress] = "outof:\s+(\d+)/(\d+)"