diff options
author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2021-08-19 19:08:14 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-26 22:09:44 +0100 |
commit | 9632185627369c390d994b52c28f2c2359886cbc (patch) | |
tree | 5099e5930909c2d3736042ba12d8562c9a763d99 /meta/recipes-devtools/cargo | |
parent | 83651eda51d65bcf479a9a8940232b712583e61f (diff) | |
download | poky-9632185627369c390d994b52c28f2c2359886cbc.tar.gz |
rust: remove Rust version 1.51.0 toolchain
We typically only have one version so remove the older
rust toolchain. This also fixes a maintainers oe-selftest.
(From OE-Core rev: d8ff9672d2686801d535a91fa28a92e38d8f0409)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cargo')
5 files changed, 0 insertions, 152 deletions
diff --git a/meta/recipes-devtools/cargo/cargo-1.51.0/0001-Disable-http2.patch b/meta/recipes-devtools/cargo/cargo-1.51.0/0001-Disable-http2.patch deleted file mode 100644 index 9d47c9beb5..0000000000 --- a/meta/recipes-devtools/cargo/cargo-1.51.0/0001-Disable-http2.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From 9844e63845da6cdafa485ad1ad3c99eaaa80312d Mon Sep 17 00:00:00 2001 | ||
2 | From: Johan Anderholm <johan.anderholm@gmail.com> | ||
3 | Date: Sun, 27 Jan 2019 10:19:00 +0100 | ||
4 | Subject: [PATCH] Disable http2 | ||
5 | |||
6 | http2 requires that curl is build with nghttp2 which in turn depends on | ||
7 | many dependencies and ultimately a dependency loop in the case of | ||
8 | curl-native. As long as multiplexing is disabled in cargo this should | ||
9 | be fine. | ||
10 | |||
11 | Upstream-Status: Inappropriate | ||
12 | --- | ||
13 | Cargo.toml | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/Cargo.toml b/Cargo.toml | ||
17 | index 8a144a4..c4f856e 100644 | ||
18 | --- a/Cargo.toml | ||
19 | +++ b/Cargo.toml | ||
20 | @@ -25,7 +25,7 @@ cargo-platform = { path = "crates/cargo-platform", version = "0.1.1" } | ||
21 | crates-io = { path = "crates/crates-io", version = "0.33.0" } | ||
22 | crossbeam-utils = "0.8" | ||
23 | crypto-hash = "0.3.1" | ||
24 | -curl = { version = "0.4.23", features = ["http2"] } | ||
25 | +curl = { version = "0.4.23" } | ||
26 | curl-sys = "0.4.22" | ||
27 | env_logger = "0.8.1" | ||
28 | pretty_env_logger = { version = "0.4", optional = true } | ||
diff --git a/meta/recipes-devtools/cargo/cargo-1.51.0/riscv-march.patch b/meta/recipes-devtools/cargo/cargo-1.51.0/riscv-march.patch deleted file mode 100644 index a10b3a4d93..0000000000 --- a/meta/recipes-devtools/cargo/cargo-1.51.0/riscv-march.patch +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | Add suppor for riscv64 and riscv32 musl targets | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | |||
6 | --- a/vendor/cc/src/lib.rs | ||
7 | +++ b/vendor/cc/src/lib.rs | ||
8 | @@ -2361,6 +2361,7 @@ impl Build { | ||
9 | "riscv-none-embed", | ||
10 | ]), | ||
11 | "riscv64gc-unknown-linux-gnu" => Some("riscv64-linux-gnu"), | ||
12 | + "riscv64gc-unknown-linux-musl" => Some("riscv64-linux-musl"), | ||
13 | "s390x-unknown-linux-gnu" => Some("s390x-linux-gnu"), | ||
14 | "sparc-unknown-linux-gnu" => Some("sparc-linux-gnu"), | ||
15 | "sparc64-unknown-linux-gnu" => Some("sparc64-linux-gnu"), | ||
16 | --- a/compiler/rustc_target/src/spec/mod.rs | ||
17 | +++ b/compiler/rustc_target/src/spec/mod.rs | ||
18 | @@ -641,9 +641,11 @@ supported_targets! { | ||
19 | ("riscv32imc-unknown-none-elf", riscv32imc_unknown_none_elf), | ||
20 | ("riscv32imac-unknown-none-elf", riscv32imac_unknown_none_elf), | ||
21 | ("riscv32gc-unknown-linux-gnu", riscv32gc_unknown_linux_gnu), | ||
22 | + ("riscv32gc-unknown-linux-musl", riscv32gc_unknown_linux_musl), | ||
23 | ("riscv64imac-unknown-none-elf", riscv64imac_unknown_none_elf), | ||
24 | ("riscv64gc-unknown-none-elf", riscv64gc_unknown_none_elf), | ||
25 | ("riscv64gc-unknown-linux-gnu", riscv64gc_unknown_linux_gnu), | ||
26 | + ("riscv64gc-unknown-linux-musl", riscv64gc_unknown_linux_musl), | ||
27 | |||
28 | ("aarch64-unknown-none", aarch64_unknown_none), | ||
29 | ("aarch64-unknown-none-softfloat", aarch64_unknown_none_softfloat), | ||
30 | --- /dev/null | ||
31 | +++ b/compiler/rustc_target/src/spec/riscv32gc_unknown_linux_musl.rs | ||
32 | @@ -0,0 +1,19 @@ | ||
33 | +use crate::spec::{CodeModel, Target, TargetOptions}; | ||
34 | + | ||
35 | +pub fn target() -> Target { | ||
36 | + Target { | ||
37 | + llvm_target: "riscv32-unknown-linux-musl".to_string(), | ||
38 | + pointer_width: 32, | ||
39 | + data_layout: "e-m:e-p:32:32-i64:64-n32-S128".to_string(), | ||
40 | + arch: "riscv32".to_string(), | ||
41 | + options: TargetOptions { | ||
42 | + unsupported_abis: super::riscv_base::unsupported_abis(), | ||
43 | + code_model: Some(CodeModel::Medium), | ||
44 | + cpu: "generic-rv32".to_string(), | ||
45 | + features: "+m,+a,+f,+d,+c".to_string(), | ||
46 | + llvm_abiname: "ilp32d".to_string(), | ||
47 | + max_atomic_width: Some(32), | ||
48 | + ..super::linux_musl_base::opts() | ||
49 | + }, | ||
50 | + } | ||
51 | +} | ||
52 | --- /dev/null | ||
53 | +++ b/compiler/rustc_target/src/spec/riscv64gc_unknown_linux_musl.rs | ||
54 | @@ -0,0 +1,19 @@ | ||
55 | +use crate::spec::{CodeModel, Target, TargetOptions}; | ||
56 | + | ||
57 | +pub fn target() -> Target { | ||
58 | + Target { | ||
59 | + llvm_target: "riscv64-unknown-linux-musl".to_string(), | ||
60 | + pointer_width: 64, | ||
61 | + data_layout: "e-m:e-p:64:64-i64:64-i128:128-n64-S128".to_string(), | ||
62 | + arch: "riscv64".to_string(), | ||
63 | + options: TargetOptions { | ||
64 | + unsupported_abis: super::riscv_base::unsupported_abis(), | ||
65 | + code_model: Some(CodeModel::Medium), | ||
66 | + cpu: "generic-rv64".to_string(), | ||
67 | + features: "+m,+a,+f,+d,+c".to_string(), | ||
68 | + llvm_abiname: "lp64d".to_string(), | ||
69 | + max_atomic_width: Some(64), | ||
70 | + ..super::linux_musl_base::opts() | ||
71 | + }, | ||
72 | + } | ||
73 | +} | ||
diff --git a/meta/recipes-devtools/cargo/cargo-1.51.0/rv64gc.patch b/meta/recipes-devtools/cargo/cargo-1.51.0/rv64gc.patch deleted file mode 100644 index aab1e18453..0000000000 --- a/meta/recipes-devtools/cargo/cargo-1.51.0/rv64gc.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | --- a/vendor/cc-1.0.60/.cargo-checksum.json | ||
2 | +++ b/vendor/cc-1.0.60/.cargo-checksum.json | ||
3 | @@ -1 +1 @@ | ||
4 | -{"files":{"Cargo.lock":"30b9e23f97015aea3eed3e17c6d76d565c2924efec8bdae64c899080847afe89","Cargo.toml":"f6f22b69df3df57c58373cdee72b22218ffa030bc375b36632660037dd72c866","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"51405d284d2e0620db62c655c652fc0ec84f20c1cb30529227355c9575a9e6dd","src/bin/gcc-shim.rs":"b77907875029494b6288841c3aed2e4939ed40708c7f597fca5c9e2570490ca6","src/com.rs":"bcdaf1c28b71e6ef889c6b08d1ce9d7c0761344a677f523bc4c3cd297957f804","src/lib.rs":"903c5f2f5dd0cc7d04f99f605a95e6abde8b38156fd4e73eefc58493f55a4e5a","src/registry.rs":"3cc1b5a50879fa751572878ae1d0afbfc960c11665258492754b2c8bccb0ff5d","src/setup_config.rs":"7014103587d3382eac599cb76f016e2609b8140970861b2237982d1db24af265","src/winapi.rs":"ea8b7edbb9ff87957254f465c2334e714c5d6b3b19a8d757c48ea7ca0881c50c","src/windows_registry.rs":"52afe8554f577c87841c48ddee3ba7ffe70a00129e1d6eeb2ec0efb3d2b9aa11","tests/cc_env.rs":"e02b3b0824ad039b47e4462c5ef6dbe6c824c28e7953af94a0f28f7b5158042e","tests/cflags.rs":"57f06eb5ce1557e5b4a032d0c4673e18fbe6f8d26c1deb153126e368b96b41b3","tests/cxxflags.rs":"c2c6c6d8a0d7146616fa1caed26876ee7bc9fcfffd525eb4743593cade5f3371","tests/support/mod.rs":"16274867f23871e9b07614eda4c7344da13d1751fed63d4f633857e40be86394","tests/test.rs":"65c073e0e2cf4aa0433066102788e9f57442719e6f32f5ad5248aa7132bb4597"},"package":"ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"} | ||
5 | \ No newline at end of file | ||
6 | +{"files":{"Cargo.lock":"30b9e23f97015aea3eed3e17c6d76d565c2924efec8bdae64c899080847afe89","Cargo.toml":"f6f22b69df3df57c58373cdee72b22218ffa030bc375b36632660037dd72c866","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"51405d284d2e0620db62c655c652fc0ec84f20c1cb30529227355c9575a9e6dd","src/bin/gcc-shim.rs":"b77907875029494b6288841c3aed2e4939ed40708c7f597fca5c9e2570490ca6","src/com.rs":"bcdaf1c28b71e6ef889c6b08d1ce9d7c0761344a677f523bc4c3cd297957f804","src/lib.rs":"2788af2bdf425f267b33bc524f3e627851b52422e38f480a7e39eb834264fd73","src/registry.rs":"3cc1b5a50879fa751572878ae1d0afbfc960c11665258492754b2c8bccb0ff5d","src/setup_config.rs":"7014103587d3382eac599cb76f016e2609b8140970861b2237982d1db24af265","src/winapi.rs":"ea8b7edbb9ff87957254f465c2334e714c5d6b3b19a8d757c48ea7ca0881c50c","src/windows_registry.rs":"52afe8554f577c87841c48ddee3ba7ffe70a00129e1d6eeb2ec0efb3d2b9aa11","tests/cc_env.rs":"e02b3b0824ad039b47e4462c5ef6dbe6c824c28e7953af94a0f28f7b5158042e","tests/cflags.rs":"57f06eb5ce1557e5b4a032d0c4673e18fbe6f8d26c1deb153126e368b96b41b3","tests/cxxflags.rs":"c2c6c6d8a0d7146616fa1caed26876ee7bc9fcfffd525eb4743593cade5f3371","tests/support/mod.rs":"16274867f23871e9b07614eda4c7344da13d1751fed63d4f633857e40be86394","tests/test.rs":"65c073e0e2cf4aa0433066102788e9f57442719e6f32f5ad5248aa7132bb4597"},"package":"ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"} | ||
7 | --- a/vendor/cc-1.0.60/src/lib.rs | ||
8 | +++ b/vendor/cc-1.0.60/src/lib.rs | ||
9 | @@ -1639,14 +1639,17 @@ impl Build { | ||
10 | let mut parts = target.split('-'); | ||
11 | if let Some(arch) = parts.next() { | ||
12 | let arch = &arch[5..]; | ||
13 | - cmd.args.push(("-march=rv".to_owned() + arch).into()); | ||
14 | if target.contains("linux") && arch.starts_with("64") { | ||
15 | + cmd.args.push(("-march=rv64gc").into()); | ||
16 | cmd.args.push("-mabi=lp64d".into()); | ||
17 | } else if target.contains("linux") && arch.starts_with("32") { | ||
18 | + cmd.args.push(("-march=rv32gc").into()); | ||
19 | cmd.args.push("-mabi=ilp32d".into()); | ||
20 | } else if arch.starts_with("64") { | ||
21 | + cmd.args.push(("-march=rv".to_owned() + arch).into()); | ||
22 | cmd.args.push("-mabi=lp64".into()); | ||
23 | } else { | ||
24 | + cmd.args.push(("-march=rv".to_owned() + arch).into()); | ||
25 | cmd.args.push("-mabi=ilp32".into()); | ||
26 | } | ||
27 | cmd.args.push("-mcmodel=medany".into()); | ||
28 | @@ -2332,6 +2335,9 @@ impl Build { | ||
29 | "riscv-none-embed", | ||
30 | ]), | ||
31 | "riscv64gc-unknown-linux-gnu" => Some("riscv64-linux-gnu"), | ||
32 | + "riscv32gc-unknown-linux-gnu" => Some("riscv32-linux-gnu"), | ||
33 | + "riscv64gc-unknown-linux-musl" => Some("riscv64-linux-musl"), | ||
34 | + "riscv32gc-unknown-linux-musl" => Some("riscv32-linux-musl"), | ||
35 | "s390x-unknown-linux-gnu" => Some("s390x-linux-gnu"), | ||
36 | "sparc-unknown-linux-gnu" => Some("sparc-linux-gnu"), | ||
37 | "sparc64-unknown-linux-gnu" => Some("sparc64-linux-gnu"), | ||
diff --git a/meta/recipes-devtools/cargo/cargo-cross-canadian_1.51.0.bb b/meta/recipes-devtools/cargo/cargo-cross-canadian_1.51.0.bb deleted file mode 100644 index dba400bcfb..0000000000 --- a/meta/recipes-devtools/cargo/cargo-cross-canadian_1.51.0.bb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require recipes-devtools/rust/rust-source-${PV}.inc | ||
2 | require recipes-devtools/rust/rust-snapshot-${PV}.inc | ||
3 | |||
4 | FILESEXTRAPATHS:prepend := "${THISDIR}/cargo-${PV}:" | ||
5 | |||
6 | require cargo-cross-canadian.inc | ||
diff --git a/meta/recipes-devtools/cargo/cargo_1.51.0.bb b/meta/recipes-devtools/cargo/cargo_1.51.0.bb deleted file mode 100644 index 335b491cc9..0000000000 --- a/meta/recipes-devtools/cargo/cargo_1.51.0.bb +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | require recipes-devtools/rust/rust-source-${PV}.inc | ||
2 | require recipes-devtools/rust/rust-snapshot-${PV}.inc | ||
3 | require cargo.inc | ||
4 | |||
5 | SRC_URI += "file://0001-Disable-http2.patch \ | ||
6 | file://riscv-march.patch;patchdir=../../.. \ | ||
7 | file://rv64gc.patch;patchdir=../../.. \ | ||
8 | " | ||