Skip to content

Commit e5d4f65

Browse files
Jean-Pierre Gesling-scott-murray
authored andcommitted
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. Signed-off-by: Jean-Pierre Geslin <[email protected]> Signed-off-by: Richard Purdie <[email protected]> (adapted from oe-core commit 16745b20452de60ae2474433cc1a2fb1ed9f6a64) Signed-off-by: Scott Murray <[email protected]>
1 parent 5b33fe5 commit e5d4f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/cargo.bbclass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ oe_cargo_build () {
4848
bbnote "Using rust targets from ${RUST_TARGET_PATH}"
4949
bbnote "cargo = $(which ${CARGO})"
5050
bbnote "${CARGO} build ${CARGO_BUILD_FLAGS} $@"
51-
"${CARGO}" build ${CARGO_BUILD_FLAGS} "$@"
51+
"${CARGO}" build ${CARGO_BUILD_FLAGS} ${PACKAGECONFIG_CONFARGS} "$@"
5252
}
5353

5454
do_compile[progress] = "outof:\s+(\d+)/(\d+)"

0 commit comments

Comments
 (0)