Skip to content

Commit

Permalink
Merge pull request meta-rust#376 from ColinFinck/rust-1.58.1
Browse files Browse the repository at this point in the history
Import Rust 1.58.1 from openembedded-core, remove Rust 1.51.0
  • Loading branch information
ColinFinck authored Feb 21, 2022
2 parents 4bde33e + 297dbb9 commit c654f5c
Show file tree
Hide file tree
Showing 37 changed files with 260 additions and 536 deletions.
28 changes: 0 additions & 28 deletions recipes-devtools/cargo/cargo-1.51.0/0001-Disable-http2.patch

This file was deleted.

73 changes: 0 additions & 73 deletions recipes-devtools/cargo/cargo-1.51.0/riscv-march.patch

This file was deleted.

37 changes: 0 additions & 37 deletions recipes-devtools/cargo/cargo-1.51.0/rv64gc.patch

This file was deleted.

6 changes: 0 additions & 6 deletions recipes-devtools/cargo/cargo-cross-canadian_1.51.0.bb

This file was deleted.

6 changes: 6 additions & 0 deletions recipes-devtools/cargo/cargo-cross-canadian_1.58.1.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require recipes-devtools/rust/rust-source.inc
require recipes-devtools/rust/rust-snapshot.inc

FILESEXTRAPATHS:prepend := "${THISDIR}/cargo-${PV}:"

require cargo-cross-canadian.inc
12 changes: 9 additions & 3 deletions recipes-devtools/cargo/cargo.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@ LIC_FILES_CHKSUM = " \

S = "${RUSTSRC}/src/tools/cargo"
CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor"
EXCLUDE_FROM_WORLD = "1"

inherit cargo
inherit cargo pkgconfig

do_cargo_setup_snapshot () {
${WORKDIR}/rust-snapshot-components/${CARGO_SNAPSHOT}/install.sh --prefix="${WORKDIR}/${CARGO_SNAPSHOT}" --disable-ldconfig
# Need to use uninative's loader if enabled/present since the library paths
# are used internally by rust and result in symbol mismatches if we don't
if [ ! -z "${UNINATIVE_LOADER}" -a -e "${UNINATIVE_LOADER}" ]; then
patchelf-uninative ${WORKDIR}/${CARGO_SNAPSHOT}/bin/cargo --set-interpreter ${UNINATIVE_LOADER}
fi
}

addtask cargo_setup_snapshot after do_unpack before do_configure
do_cargo_setup_snapshot[dirs] += "${WORKDIR}/${CARGO_SNAPSHOT}"
do_cargo_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER"


do_compile:prepend () {
export RUSTC_BOOTSTRAP="1"
Expand All @@ -42,8 +50,6 @@ do_install () {
# Needed for pkg-config to be used
export LIBSSH2_SYS_USE_PKG_CONFIG = "1"

BBCLASSEXTEND = "native nativesdk"

# When building cargo-native we don't have cargo-native to use and depend on,
# so we must use the locally set up snapshot to bootstrap the build.
BASEDEPENDS:remove:class-native = "cargo-native"
Expand Down
8 changes: 0 additions & 8 deletions recipes-devtools/cargo/cargo_1.51.0.bb

This file was deleted.

2 changes: 1 addition & 1 deletion recipes-devtools/cargo/cargo_1.54.0.bb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require recipes-devtools/rust/rust-source-${PV}.inc
require recipes-devtools/rust/rust-snapshot-${PV}.inc
require cargo.inc

BBCLASSEXTEND = "native nativesdk"
4 changes: 4 additions & 0 deletions recipes-devtools/cargo/cargo_1.58.1.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require recipes-devtools/rust/rust-source.inc
require recipes-devtools/rust/rust-snapshot.inc
require cargo.inc
BBCLASSEXTEND = "native nativesdk"
73 changes: 0 additions & 73 deletions recipes-devtools/rust/files/riscv-march.patch

This file was deleted.

37 changes: 0 additions & 37 deletions recipes-devtools/rust/files/rv64gc.patch

This file was deleted.

This file was deleted.

Loading

0 comments on commit c654f5c

Please sign in to comment.