summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-05 13:48:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-08 15:44:20 +0100
commit1b7b5c37598b4475075b4e526277e5eb63d2a77c (patch)
tree0cea8be3b7762da9f511da260594c512f2a82364 /meta/classes
parent251f55374d26b5c24d8833aa87c95432be8b81b2 (diff)
downloadpoky-1b7b5c37598b4475075b4e526277e5eb63d2a77c.tar.gz
rust-common: Set rustlibdir to match target expectation
(From OE-Core rev: 06af65757b7694df983b3f99cec75e4e9bec0725) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rust-common.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass
index 516b258c15..8ee05f57f8 100644
--- a/meta/classes/rust-common.bbclass
+++ b/meta/classes/rust-common.bbclass
@@ -2,12 +2,12 @@ inherit python3native
2inherit rust-target-config 2inherit rust-target-config
3 3
4# Common variables used by all Rust builds 4# Common variables used by all Rust builds
5export rustlibdir = "${libdir}/rust" 5export rustlibdir = "${libdir}/rustlib/${RUST_HOST_SYS}/lib"
6FILES:${PN} += "${rustlibdir}/*.so" 6FILES:${PN} += "${rustlibdir}/*.so"
7FILES:${PN}-dev += "${rustlibdir}/*.rlib ${rustlibdir}/*.rmeta" 7FILES:${PN}-dev += "${rustlibdir}/*.rlib ${rustlibdir}/*.rmeta"
8FILES:${PN}-dbg += "${rustlibdir}/.debug" 8FILES:${PN}-dbg += "${rustlibdir}/.debug"
9 9
10RUSTLIB = "-L ${STAGING_LIBDIR}/rust" 10RUSTLIB = "-L ${STAGING_DIR_HOST}${rustlibdir}"
11RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" 11RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
12RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" 12RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}"
13RUSTLIB_DEP ?= "libstd-rs" 13RUSTLIB_DEP ?= "libstd-rs"