diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2023-04-26 16:40:53 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-05 11:07:25 +0100 |
| commit | b17491f7f1087703a2519a9004cb7fbdba6c5fbf (patch) | |
| tree | 904eea95a800ae1de0f18a20dc11a7cdc180d12a /meta/recipes-devtools/rust/libstd-rs_1.69.0.bb | |
| parent | 2e84bb1971d1b9511f26d5ff885fdb5f5c09a788 (diff) | |
| download | poky-b17491f7f1087703a2519a9004cb7fbdba6c5fbf.tar.gz | |
rust: Upgrade 1.68.2 -> 1.69.0
Rebase patches, drop crossbeam_atomic is this fully merged upstream.
https://blog.rust-lang.org/2023/04/20/Rust-1.69.0.html
(From OE-Core rev: 39e05f9b0fdc3f76f8b80a12989f78614bc9ea5c)
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/libstd-rs_1.69.0.bb')
| -rw-r--r-- | meta/recipes-devtools/rust/libstd-rs_1.69.0.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/libstd-rs_1.69.0.bb b/meta/recipes-devtools/rust/libstd-rs_1.69.0.bb new file mode 100644 index 0000000000..f4e5abc0cc --- /dev/null +++ b/meta/recipes-devtools/rust/libstd-rs_1.69.0.bb | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | SUMMARY = "Rust standard libaries" | ||
| 2 | HOMEPAGE = "http://www.rust-lang.org" | ||
| 3 | SECTION = "devel" | ||
| 4 | LICENSE = "(MIT | Apache-2.0) & Unicode-TOU" | ||
| 5 | LIC_FILES_CHKSUM = "file://../../COPYRIGHT;md5=c2cccf560306876da3913d79062a54b9" | ||
| 6 | |||
| 7 | require rust-source.inc | ||
| 8 | |||
| 9 | # Building with library/std omits proc_macro from the sysroot. Using | ||
| 10 | # library/test causes that to be installed which then allows cargo to | ||
| 11 | # build (https://github.com/meta-rust/meta-rust/issues/266) | ||
| 12 | S = "${RUSTSRC}/library/test" | ||
| 13 | |||
| 14 | RUSTLIB_DEP = "" | ||
| 15 | inherit cargo | ||
| 16 | |||
| 17 | DEPENDS:append:libc-musl = " libunwind" | ||
| 18 | # rv32 does not have libunwind ported yet | ||
| 19 | DEPENDS:remove:riscv32 = "libunwind" | ||
| 20 | DEPENDS:remove:riscv64 = "libunwind" | ||
| 21 | |||
| 22 | # Embed bitcode in order to allow compiling both with and without LTO | ||
| 23 | RUSTFLAGS += "-Cembed-bitcode=yes" | ||
| 24 | # Needed so cargo can find libbacktrace | ||
| 25 | RUSTFLAGS += "-L ${STAGING_LIBDIR} -C link-arg=-Wl,-soname,libstd.so" | ||
| 26 | |||
| 27 | CARGO_FEATURES ?= "panic-unwind backtrace" | ||
| 28 | CARGO_BUILD_FLAGS += "--features '${CARGO_FEATURES}'" | ||
| 29 | CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor" | ||
| 30 | |||
| 31 | do_compile:prepend () { | ||
| 32 | export CARGO_TARGET_DIR="${B}" | ||
| 33 | # For Rust 1.13.0 and newer | ||
| 34 | export RUSTC_BOOTSTRAP="1" | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install () { | ||
| 38 | mkdir -p ${D}${rustlibdir} | ||
| 39 | |||
| 40 | # With the incremental build support added in 1.24, the libstd deps directory also includes dependency | ||
| 41 | # files that get installed. Those are really only needed to incrementally rebuild the libstd library | ||
| 42 | # itself and don't need to be installed. | ||
| 43 | rm -f ${B}/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/*.d | ||
| 44 | cp ${B}/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/* ${D}${rustlibdir} | ||
| 45 | } | ||
| 46 | |||
| 47 | BBCLASSEXTEND = "nativesdk" | ||
