summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2025-03-20 17:55:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-25 21:20:41 +0000
commit41dbf14659b74ed5ce5eee98eab1da69b60de831 (patch)
tree2f83cb7b2aa11932b4738fd3999a8219dbb9f8e3 /meta/classes-recipe
parent84c2919180e3d40cbbff1e5fa02a5b939e56fdda (diff)
downloadpoky-41dbf14659b74ed5ce5eee98eab1da69b60de831.tar.gz
cargo.bbclass: show PACKAGECONFIG_CONFARGS in bbnote
* PACKAGECONFIG_CONFARGS was added in: https://git.openembedded.org/openembedded-core/commit/?id=16745b20452de60ae2474433cc1a2fb1ed9f6a64 but it wasn't added in bbnote above which might lead to confusing errors like I got now: NOTE: cargo build -v --frozen --target aarch64-webos-linux-gnu --release --manifest-path=.../git//Cargo.toml error: unexpected argument '--cfg' found Usage: cargo build --verbose... --frozen --target [<TRIPLE>] --release --manifest-path <PATH> and was wondering where --cfg came from. * it was from recipe where we already use: RUSTFLAGS:append = " ${PACKAGECONFIG_CONFARGS}" it will be difficult to use PACKAGECONFIG for RUSTFLAGS and prevent them to be used here for cargo as well, what about the recipes which need them to explicitly append them to CARGO_BUILD_FLAGS ? (From OE-Core rev: 38d953b2ffd4e0cee9e77f97988e44be105023c6) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-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 461d100dd9..2dd28e95d3 100644
--- a/meta/classes-recipe/cargo.bbclass
+++ b/meta/classes-recipe/cargo.bbclass
@@ -47,7 +47,7 @@ oe_cargo_build () {
47 export RUSTFLAGS="${RUSTFLAGS}" 47 export RUSTFLAGS="${RUSTFLAGS}"
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} ${PACKAGECONFIG_CONFARGS} $@"
51 "${CARGO}" build ${CARGO_BUILD_FLAGS} ${PACKAGECONFIG_CONFARGS} "$@" 51 "${CARGO}" build ${CARGO_BUILD_FLAGS} ${PACKAGECONFIG_CONFARGS} "$@"
52} 52}
53 53