summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/rust-common.bbclass
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2023-12-08 12:00:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-09 19:17:11 +0000
commitdddfe1e3f4135d974c6692071e08f6e0a96df1b3 (patch)
tree430850e551952c1b7d9f6060e69fb151f4b17fce /meta/classes-recipe/rust-common.bbclass
parent43df94f7af8422ebd1f2884992349ff1baae232b (diff)
downloadpoky-dddfe1e3f4135d974c6692071e08f6e0a96df1b3.tar.gz
rust: cargo: Convert single-valued variables to weak defaults
All of these variables are single-valued, so we can use weak-defaults for them and only see the final assignment after parsing. (From OE-Core rev: 3221e82a35a149fdf38fe66dcd5de758ac1b9185) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/rust-common.bbclass')
-rw-r--r--meta/classes-recipe/rust-common.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/rust-common.bbclass b/meta/classes-recipe/rust-common.bbclass
index ae96d9c5b1..6940093e59 100644
--- a/meta/classes-recipe/rust-common.bbclass
+++ b/meta/classes-recipe/rust-common.bbclass
@@ -16,8 +16,8 @@ FILES:${PN}-dbg += "${rustlibdir}/.debug"
16RUSTLIB = "-L ${STAGING_DIR_HOST}${rustlibdir}" 16RUSTLIB = "-L ${STAGING_DIR_HOST}${rustlibdir}"
17RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=${TARGET_DBGSRC_DIR}" 17RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=${TARGET_DBGSRC_DIR}"
18RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" 18RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}"
19RUSTLIB_DEP ?= "libstd-rs" 19RUSTLIB_DEP ??= "libstd-rs"
20RUST_PANIC_STRATEGY ?= "unwind" 20RUST_PANIC_STRATEGY ??= "unwind"
21 21
22def target_is_armv7(d): 22def target_is_armv7(d):
23 '''Determine if target is armv7''' 23 '''Determine if target is armv7'''