@@ -0,0 +1,85 @@
|
|||||||
|
require cargo-snapshot.inc
|
||||||
|
require cargo.inc
|
||||||
|
|
||||||
|
EXTRA_OECONF += "--cargo=${WORKDIR}/cargo-nightly-x86_64-unknown-linux-gnu/cargo/bin/cargo"
|
||||||
|
|
||||||
|
SRC_URI += " \
|
||||||
|
git://github.com/rust-lang/cargo.git;protocol=https;name=cargo;branch=rust-1.15.1 \
|
||||||
|
crate://crates.io/advapi32-sys/0.2.0 \
|
||||||
|
crate://crates.io/aho-corasick/0.5.3 \
|
||||||
|
crate://crates.io/bitflags/0.7.0 \
|
||||||
|
crate://crates.io/bufstream/0.1.2 \
|
||||||
|
crate://crates.io/cfg-if/0.1.0 \
|
||||||
|
crate://crates.io/cmake/0.1.19 \
|
||||||
|
crate://crates.io/crossbeam/0.2.10 \
|
||||||
|
crate://crates.io/curl-sys/0.3.6 \
|
||||||
|
crate://crates.io/curl/0.4.1 \
|
||||||
|
crate://crates.io/docopt/0.6.86 \
|
||||||
|
crate://crates.io/env_logger/0.3.5 \
|
||||||
|
crate://crates.io/filetime/0.1.10 \
|
||||||
|
crate://crates.io/flate2/0.2.14 \
|
||||||
|
crate://crates.io/fs2/0.3.0 \
|
||||||
|
crate://crates.io/gcc/0.3.39 \
|
||||||
|
crate://crates.io/gdi32-sys/0.2.0 \
|
||||||
|
crate://crates.io/git2-curl/0.7.0 \
|
||||||
|
crate://crates.io/git2/0.6.3 \
|
||||||
|
crate://crates.io/glob/0.2.11 \
|
||||||
|
crate://crates.io/hamcrest/0.1.1 \
|
||||||
|
crate://crates.io/idna/0.1.0 \
|
||||||
|
crate://crates.io/kernel32-sys/0.2.2 \
|
||||||
|
crate://crates.io/lazy_static/0.2.2 \
|
||||||
|
crate://crates.io/libc/0.2.18 \
|
||||||
|
crate://crates.io/libgit2-sys/0.6.5 \
|
||||||
|
crate://crates.io/libssh2-sys/0.2.4 \
|
||||||
|
crate://crates.io/libz-sys/1.0.10 \
|
||||||
|
crate://crates.io/log/0.3.6 \
|
||||||
|
crate://crates.io/matches/0.1.4 \
|
||||||
|
crate://crates.io/memchr/0.1.11 \
|
||||||
|
crate://crates.io/miniz-sys/0.1.7 \
|
||||||
|
crate://crates.io/miow/0.1.3 \
|
||||||
|
crate://crates.io/net2/0.2.26 \
|
||||||
|
crate://crates.io/num-bigint/0.1.35 \
|
||||||
|
crate://crates.io/num-complex/0.1.35 \
|
||||||
|
crate://crates.io/num-integer/0.1.32 \
|
||||||
|
crate://crates.io/num-iter/0.1.32 \
|
||||||
|
crate://crates.io/num-rational/0.1.35 \
|
||||||
|
crate://crates.io/num-traits/0.1.36 \
|
||||||
|
crate://crates.io/num/0.1.36 \
|
||||||
|
crate://crates.io/num_cpus/1.1.0 \
|
||||||
|
crate://crates.io/openssl-probe/0.1.0 \
|
||||||
|
crate://crates.io/openssl-sys/0.9.1 \
|
||||||
|
crate://crates.io/openssl/0.9.1 \
|
||||||
|
crate://crates.io/pkg-config/0.3.8 \
|
||||||
|
crate://crates.io/psapi-sys/0.1.0 \
|
||||||
|
crate://crates.io/rand/0.3.14 \
|
||||||
|
crate://crates.io/regex-syntax/0.3.9 \
|
||||||
|
crate://crates.io/regex/0.1.80 \
|
||||||
|
crate://crates.io/rustc-serialize/0.3.21 \
|
||||||
|
crate://crates.io/semver-parser/0.6.1 \
|
||||||
|
crate://crates.io/semver/0.5.1 \
|
||||||
|
crate://crates.io/strsim/0.5.1 \
|
||||||
|
crate://crates.io/tar/0.4.9 \
|
||||||
|
crate://crates.io/tempdir/0.3.5 \
|
||||||
|
crate://crates.io/term/0.4.4 \
|
||||||
|
crate://crates.io/thread-id/2.0.0 \
|
||||||
|
crate://crates.io/thread_local/0.2.7 \
|
||||||
|
crate://crates.io/toml/0.2.1 \
|
||||||
|
crate://crates.io/unicode-bidi/0.2.3 \
|
||||||
|
crate://crates.io/unicode-normalization/0.1.2 \
|
||||||
|
crate://crates.io/url/1.2.3 \
|
||||||
|
crate://crates.io/user32-sys/0.2.0 \
|
||||||
|
crate://crates.io/utf8-ranges/0.1.3 \
|
||||||
|
crate://crates.io/winapi-build/0.1.1 \
|
||||||
|
crate://crates.io/winapi/0.2.8 \
|
||||||
|
crate://crates.io/ws2_32-sys/0.2.1 \
|
||||||
|
"
|
||||||
|
|
||||||
|
SRCREV_cargo = "6e0c18cccc8b0c06fba8a8d76486f81a792fb420"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
LIC_FILES_CHKSUM=" \
|
||||||
|
file://LICENSE-MIT;md5=362255802eb5aa87810d12ddf3cfedb4 \
|
||||||
|
file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \
|
||||||
|
file://LICENSE-THIRD-PARTY;md5=892ea68b169e69cfe75097fc38a15b56 \
|
||||||
|
"
|
||||||
@@ -12,8 +12,6 @@ DEPENDS += "rust-llvm-native (=${PV})"
|
|||||||
RDEPENDS_${PN}-dev = ""
|
RDEPENDS_${PN}-dev = ""
|
||||||
INSANE_SKIP_${PN}-dev = "staticdev"
|
INSANE_SKIP_${PN}-dev = "staticdev"
|
||||||
|
|
||||||
S = "${WORKDIR}/rustc-${PV}"
|
|
||||||
|
|
||||||
DISABLE_STATIC = ""
|
DISABLE_STATIC = ""
|
||||||
INHIBIT_DEFAULT_RUST_DEPS = "1"
|
INHIBIT_DEFAULT_RUST_DEPS = "1"
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
require compiler-rt.inc
|
|
||||||
require rust-source-${PV}.inc
|
|
||||||
-72
@@ -1,72 +0,0 @@
|
|||||||
From 52fa8537ae9073b81340a974c8eebb1b2fc2e1aa Mon Sep 17 00:00:00 2001
|
|
||||||
From: Cody P Schafer <dev@codyps.com>
|
|
||||||
Date: Tue, 18 Nov 2014 14:52:56 -0500
|
|
||||||
Subject: [PATCH 2/3] mk: for stage0, use RUSTFLAGS to override target libs dir
|
|
||||||
|
|
||||||
Setting HLIB specially for stage0 (and even more specially for windows)
|
|
||||||
also affects the location we place TLIB. To keep the TLIBs we build in
|
|
||||||
the place requested by configure, use '-L' and '--sysroot' to point
|
|
||||||
stage0-rustc at the appropriate location.
|
|
||||||
---
|
|
||||||
mk/main.mk | 29 ++++++++++++-----------------
|
|
||||||
1 file changed, 12 insertions(+), 17 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/mk/main.mk b/mk/main.mk
|
|
||||||
index fd0464a..755bf09 100644
|
|
||||||
--- a/mk/main.mk
|
|
||||||
+++ b/mk/main.mk
|
|
||||||
@@ -403,32 +403,26 @@ define SREQ
|
|
||||||
HROOT$(1)_H_$(3) = $(3)/stage$(1)
|
|
||||||
HBIN$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/bin
|
|
||||||
|
|
||||||
-ifeq ($$(CFG_WINDOWSY_$(3)),1)
|
|
||||||
-# On Windows we always store host runtime libraries in the 'bin' directory because
|
|
||||||
-# there's no rpath. Target libraries go under $CFG_LIBDIR_RELATIVE (usually 'lib').
|
|
||||||
-HLIB_RELATIVE$(1)_H_$(3) = bin
|
|
||||||
-TROOT$(1)_T_$(2)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR_RELATIVE)/rustlib/$(2)
|
|
||||||
-# Remove the next 3 lines after a snapshot
|
|
||||||
-ifeq ($(1),0)
|
|
||||||
-RUSTFLAGS_STAGE0 += -L $$(TROOT$(1)_T_$(2)_H_$(3))/lib
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
-else
|
|
||||||
-
|
|
||||||
-ifeq ($(1),0)
|
|
||||||
-HLIB_RELATIVE$(1)_H_$(3) = lib
|
|
||||||
-else
|
|
||||||
HLIB_RELATIVE$(1)_H_$(3) = $$(CFG_LIBDIR_RELATIVE)
|
|
||||||
-endif
|
|
||||||
+
|
|
||||||
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/rustlib/$(2)
|
|
||||||
|
|
||||||
-endif
|
|
||||||
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(HLIB_RELATIVE$(1)_H_$(3))
|
|
||||||
|
|
||||||
# Destinations of artifacts for target architectures
|
|
||||||
TBIN$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/bin
|
|
||||||
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/lib
|
|
||||||
|
|
||||||
+# Don't trust stage0, be explicit about libraries
|
|
||||||
+# TODO: rather than specifying sysroot, we really want to tell which libdir to
|
|
||||||
+# use (ie: the dir containing 'rustlib'). This would allow us to avoid
|
|
||||||
+# passing the '-L' options.
|
|
||||||
+ifeq ($(1),0)
|
|
||||||
+RUSTFLAGS_S_$(1)_T_$(2)_H_$(3) += --sysroot "$$(HROOT$(1)_H_$(3))" \
|
|
||||||
+ -L "$$(TLIB$(1)_T_$(2)_H_$(3))"
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
+
|
|
||||||
# Preqrequisites for using the stageN compiler
|
|
||||||
ifeq ($(1),0)
|
|
||||||
HSREQ$(1)_H_$(3) = $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3))
|
|
||||||
@@ -548,6 +542,7 @@ STAGE$(1)_T_$(2)_H_$(3) := \
|
|
||||||
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
|
|
||||||
--cfg $$(CFGFLAG$(1)_T_$(2)_H_$(3)) \
|
|
||||||
$$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2)) \
|
|
||||||
+ $$(RUSTFLAGS_S_$(1)_T_$(2)_H_$(3)) \
|
|
||||||
$$(RUSTC_FLAGS_$(2))
|
|
||||||
|
|
||||||
endef
|
|
||||||
--
|
|
||||||
2.10.1 (Apple Git-78)
|
|
||||||
|
|
||||||
+11
-11
@@ -1,4 +1,4 @@
|
|||||||
From 24b71f1ce87c1247d0e573d3dcba4686f237c817 Mon Sep 17 00:00:00 2001
|
From e9c6cf5d1a9bb7f50c5e98a660217062b510928b Mon Sep 17 00:00:00 2001
|
||||||
From: Cody P Schafer <dev@codyps.com>
|
From: Cody P Schafer <dev@codyps.com>
|
||||||
Date: Tue, 18 Nov 2014 01:40:21 -0500
|
Date: Tue, 18 Nov 2014 01:40:21 -0500
|
||||||
Subject: [PATCH 1/3] Target: add default target.json path:
|
Subject: [PATCH 1/3] Target: add default target.json path:
|
||||||
@@ -11,20 +11,20 @@ Subject: [PATCH 1/3] Target: add default target.json path:
|
|||||||
3 files changed, 19 insertions(+), 7 deletions(-)
|
3 files changed, 19 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs
|
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs
|
||||||
index 63eabd5..6d002d0 100644
|
index 5e3c8bc..15fd763 100644
|
||||||
--- a/src/librustc/session/config.rs
|
--- a/src/librustc/session/config.rs
|
||||||
+++ b/src/librustc/session/config.rs
|
+++ b/src/librustc/session/config.rs
|
||||||
@@ -42,7 +42,7 @@ use std::fmt;
|
@@ -42,7 +42,7 @@ use std::hash::Hasher;
|
||||||
use std::hash::Hasher;
|
|
||||||
use std::collections::hash_map::DefaultHasher;
|
use std::collections::hash_map::DefaultHasher;
|
||||||
|
use std::collections::HashSet;
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
-use std::path::PathBuf;
|
-use std::path::PathBuf;
|
||||||
+use std::path::{Path, PathBuf};
|
+use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub target: Target,
|
pub target: Target,
|
||||||
@@ -1002,8 +1002,8 @@ pub fn build_configuration(sess: &Session,
|
@@ -1001,8 +1001,8 @@ pub fn build_configuration(sess: &Session,
|
||||||
v
|
user_cfg
|
||||||
}
|
}
|
||||||
|
|
||||||
-pub fn build_target_config(opts: &Options, sp: &Handler) -> Config {
|
-pub fn build_target_config(opts: &Options, sp: &Handler) -> Config {
|
||||||
@@ -35,10 +35,10 @@ index 63eabd5..6d002d0 100644
|
|||||||
Err(e) => {
|
Err(e) => {
|
||||||
sp.struct_fatal(&format!("Error loading target specification: {}", e))
|
sp.struct_fatal(&format!("Error loading target specification: {}", e))
|
||||||
diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs
|
diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs
|
||||||
index b4dadbf..72fa269 100644
|
index 91765e6..29e5e5d 100644
|
||||||
--- a/src/librustc/session/mod.rs
|
--- a/src/librustc/session/mod.rs
|
||||||
+++ b/src/librustc/session/mod.rs
|
+++ b/src/librustc/session/mod.rs
|
||||||
@@ -564,13 +564,17 @@ pub fn build_session_(sopts: config::Options,
|
@@ -575,13 +575,17 @@ pub fn build_session_(sopts: config::Options,
|
||||||
codemap: Rc<codemap::CodeMap>,
|
codemap: Rc<codemap::CodeMap>,
|
||||||
cstore: Rc<for<'a> CrateStore<'a>>)
|
cstore: Rc<for<'a> CrateStore<'a>>)
|
||||||
-> Session {
|
-> Session {
|
||||||
@@ -59,7 +59,7 @@ index b4dadbf..72fa269 100644
|
|||||||
let default_sysroot = match sopts.maybe_sysroot {
|
let default_sysroot = match sopts.maybe_sysroot {
|
||||||
Some(_) => None,
|
Some(_) => None,
|
||||||
diff --git a/src/librustc_back/target/mod.rs b/src/librustc_back/target/mod.rs
|
diff --git a/src/librustc_back/target/mod.rs b/src/librustc_back/target/mod.rs
|
||||||
index 4d9315a..12aadab 100644
|
index 351d469..3282dbd 100644
|
||||||
--- a/src/librustc_back/target/mod.rs
|
--- a/src/librustc_back/target/mod.rs
|
||||||
+++ b/src/librustc_back/target/mod.rs
|
+++ b/src/librustc_back/target/mod.rs
|
||||||
@@ -51,6 +51,7 @@ use std::io::prelude::*;
|
@@ -51,6 +51,7 @@ use std::io::prelude::*;
|
||||||
@@ -70,7 +70,7 @@ index 4d9315a..12aadab 100644
|
|||||||
|
|
||||||
mod android_base;
|
mod android_base;
|
||||||
mod apple_base;
|
mod apple_base;
|
||||||
@@ -604,12 +605,13 @@ impl Target {
|
@@ -625,12 +626,13 @@ impl Target {
|
||||||
///
|
///
|
||||||
/// The error string could come from any of the APIs called, including
|
/// The error string could come from any of the APIs called, including
|
||||||
/// filesystem access and JSON decoding.
|
/// filesystem access and JSON decoding.
|
||||||
@@ -85,7 +85,7 @@ index 4d9315a..12aadab 100644
|
|||||||
|
|
||||||
fn load_file(path: &Path) -> Result<Target, String> {
|
fn load_file(path: &Path) -> Result<Target, String> {
|
||||||
let mut f = File::open(path).map_err(|e| e.to_string())?;
|
let mut f = File::open(path).map_err(|e| e.to_string())?;
|
||||||
@@ -640,8 +642,14 @@ impl Target {
|
@@ -661,8 +663,14 @@ impl Target {
|
||||||
.unwrap_or(OsString::new());
|
.unwrap_or(OsString::new());
|
||||||
|
|
||||||
// FIXME 16351: add a sane default search path?
|
// FIXME 16351: add a sane default search path?
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
From 719526b7227609733bc4400651e9919545934905 Mon Sep 17 00:00:00 2001
|
From bff536002eba2ed322d329d9022ccdc77da458a3 Mon Sep 17 00:00:00 2001
|
||||||
From: Cody P Schafer <dev@codyps.com>
|
From: Cody P Schafer <dev@codyps.com>
|
||||||
Date: Wed, 3 Dec 2014 19:15:19 -0500
|
Date: Wed, 3 Dec 2014 19:15:19 -0500
|
||||||
Subject: [PATCH 3/3] std/thread_local: workaround for NULL __dso_handle
|
Subject: [PATCH 3/3] std/thread_local: workaround for NULL __dso_handle
|
||||||
@@ -4,22 +4,12 @@ SECTION = "devel"
|
|||||||
LICENSE = "MIT | Apache-2.0"
|
LICENSE = "MIT | Apache-2.0"
|
||||||
LIC_FILES_CHKSUM ="file://COPYRIGHT;md5=43e1f1fb9c0ee3af66693d8c4fecafa8"
|
LIC_FILES_CHKSUM ="file://COPYRIGHT;md5=43e1f1fb9c0ee3af66693d8c4fecafa8"
|
||||||
|
|
||||||
S = "${WORKDIR}/rustc-${PV}"
|
|
||||||
|
|
||||||
SRC_URI += "\
|
|
||||||
crate://crates.io/gcc/0.3.27 \
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPENDS += "compiler-rt (=${PV})"
|
|
||||||
|
|
||||||
RUSTLIB_DEP = ""
|
RUSTLIB_DEP = ""
|
||||||
inherit cargo
|
inherit cargo
|
||||||
|
|
||||||
# Needed so cargo can find libbacktrace
|
# Needed so cargo can find libbacktrace
|
||||||
RUSTFLAGS += "-L ${STAGING_LIBDIR}"
|
RUSTFLAGS += "-L ${STAGING_LIBDIR}"
|
||||||
|
|
||||||
S = "${WORKDIR}/rustc-${PV}"
|
|
||||||
|
|
||||||
do_compile_prepend () {
|
do_compile_prepend () {
|
||||||
cd ${S}/src/rustc/std_shim
|
cd ${S}/src/rustc/std_shim
|
||||||
export CARGO_TARGET_DIR="${B}"
|
export CARGO_TARGET_DIR="${B}"
|
||||||
|
|||||||
@@ -1,2 +1,11 @@
|
|||||||
require libstd-rs.inc
|
|
||||||
require rust-source-${PV}.inc
|
require rust-source-${PV}.inc
|
||||||
|
require libstd-rs.inc
|
||||||
|
|
||||||
|
SRC_URI += "\
|
||||||
|
crate://crates.io/gcc/0.3.27 \
|
||||||
|
"
|
||||||
|
|
||||||
|
# not necessary from Rust 1.15.x and newer as its built
|
||||||
|
# as a cargo crate with libstd
|
||||||
|
DEPENDS += "compiler-rt (=${PV})"
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
require libstd-rs.inc
|
|
||||||
require rust-source-${PV}.inc
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
require rust-source-${PV}.inc
|
||||||
|
require libstd-rs.inc
|
||||||
|
|
||||||
|
EXTRA_OECONF = "--disable-rustbuild"
|
||||||
|
|
||||||
|
CARGO_BUILD_FLAGS += "--features 'jemalloc panic-unwind'"
|
||||||
|
|
||||||
|
SRC_URI += "\
|
||||||
|
crate://crates.io/cmake/0.1.18 \
|
||||||
|
crate://crates.io/env_logger/0.3.5 \
|
||||||
|
crate://crates.io/filetime/0.1.10 \
|
||||||
|
crate://crates.io/gcc/0.3.40 \
|
||||||
|
crate://crates.io/getopts/0.2.14 \
|
||||||
|
crate://crates.io/libc/0.2.17 \
|
||||||
|
crate://crates.io/log/0.3.6 \
|
||||||
|
crate://crates.io/num_cpus/0.2.13 \
|
||||||
|
crate://crates.io/rustc-serialize/0.3.19 \
|
||||||
|
crate://crates.io/toml/0.1.30 \
|
||||||
|
"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
SUMMARY = "LLVM compiler framework (packaged with rust)"
|
SUMMARY = "LLVM compiler framework (packaged with rust)"
|
||||||
LICENSE = "NCSA"
|
LICENSE = "NCSA"
|
||||||
|
|
||||||
S = "${WORKDIR}/rustc-${PV}/src/llvm"
|
S = "${RUSTSRC}/src/llvm"
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa"
|
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
require rust-llvm.inc
|
|
||||||
require rust-source-${PV}.inc
|
require rust-source-${PV}.inc
|
||||||
|
require rust-llvm.inc
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=43fdaa303c1c5589ad60f4ffc6a0b9ce"
|
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=43fdaa303c1c5589ad60f4ffc6a0b9ce"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
require rust-llvm.inc
|
|
||||||
require rust-source-${PV}.inc
|
require rust-source-${PV}.inc
|
||||||
|
require rust-llvm.inc
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=43fdaa303c1c5589ad60f4ffc6a0b9ce"
|
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=43fdaa303c1c5589ad60f4ffc6a0b9ce"
|
||||||
|
|
||||||
@@ -19,3 +19,7 @@ SRC_URI += "\
|
|||||||
SRC_URI[rust.md5sum] = "82db5a9cb9a051bf8ece2f5174cb273b"
|
SRC_URI[rust.md5sum] = "82db5a9cb9a051bf8ece2f5174cb273b"
|
||||||
SRC_URI[rust.sha256sum] = "97913ae4cb255618aaacd1a534b11f343634b040b32656250d09d8d9ec02d3dc"
|
SRC_URI[rust.sha256sum] = "97913ae4cb255618aaacd1a534b11f343634b040b32656250d09d8d9ec02d3dc"
|
||||||
|
|
||||||
|
# later versions of rust change the directory that they unextract to
|
||||||
|
RUSTSRC = "${WORKDIR}/rustc-${PV}"
|
||||||
|
# set this as our default
|
||||||
|
S = "${RUSTSRC}"
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
# Specifics for Rust 1.14.0
|
|
||||||
|
|
||||||
## This is information on the rust-snapshot (binary) used to build our current release.
|
|
||||||
## snapshot info is taken from rust/src/stage0.txt
|
|
||||||
## TODO: find a way to add additional SRC_URIs based on the contents of an
|
|
||||||
## earlier SRC_URI.
|
|
||||||
RS_VERSION = "1.13.0"
|
|
||||||
|
|
||||||
RUST_SNAPSHOT = "rustc-${RS_VERSION}-${RUST_BUILD_SYS}"
|
|
||||||
|
|
||||||
# These are x86_64-unknown-linux-gnu hashes, how can we add more?
|
|
||||||
SRC_URI[rust-snapshot.md5sum] = "1400262e1529f94a12d2f5c77cc67782"
|
|
||||||
SRC_URI[rust-snapshot.sha256sum] = "0b092ba6750be89aad32b231ad9c625a11b040fae3cad5aa3ef32aaf213332d4"
|
|
||||||
|
|
||||||
SRC_URI += "\
|
|
||||||
https://static.rust-lang.org/dist/rustc-${PV}-src.tar.gz;name=rust \
|
|
||||||
"
|
|
||||||
SRC_URI[rust.md5sum] = "00b6bb5b465e7bd89c541eea99876cdc"
|
|
||||||
SRC_URI[rust.sha256sum] = "c790edd2e915bd01bea46122af2942108479a2fda9a6f76d1094add520ac3b6b"
|
|
||||||
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Specifics for Rust 1.15.1
|
||||||
|
|
||||||
|
## This is information on the rust-snapshot (binary) used to build our current release.
|
||||||
|
## snapshot info is taken from rust/src/stage0.txt
|
||||||
|
## TODO: find a way to add additional SRC_URIs based on the contents of an
|
||||||
|
## earlier SRC_URI.
|
||||||
|
RS_VERSION = "1.14.0"
|
||||||
|
|
||||||
|
RUST_SNAPSHOT = "rustc-${RS_VERSION}-${RUST_BUILD_SYS}"
|
||||||
|
|
||||||
|
# These are x86_64-unknown-linux-gnu hashes, how can we add more?
|
||||||
|
SRC_URI[rust-snapshot.md5sum] = "f178d9d6aad0f87c451f4b2f93170633"
|
||||||
|
SRC_URI[rust-snapshot.sha256sum] = "0eeec4211aa872f24c220200a0c2b095bbfc9c0f737c1c5df2555967c8f36787"
|
||||||
|
|
||||||
|
SRC_URI += "\
|
||||||
|
https://static.rust-lang.org/dist/rustc-${PV}-src.tar.gz;name=rust \
|
||||||
|
"
|
||||||
|
SRC_URI[rust.md5sum] = "5bbfff5ef8857a73d120616546a7fd29"
|
||||||
|
SRC_URI[rust.sha256sum] = "2e7daad418a830b45b977cd7ecf181b65f30f73df63ff36e124ea5fe5d1af327"
|
||||||
|
|
||||||
|
# later versions of rust change the directory that they unextract to
|
||||||
|
RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
|
||||||
|
# set this as our default
|
||||||
|
S = "${RUSTSRC}"
|
||||||
@@ -10,8 +10,6 @@ SRC_URI = "\
|
|||||||
https://static.rust-lang.org/dist/${RUST_SNAPSHOT}.tar.gz;name=rust-snapshot \
|
https://static.rust-lang.org/dist/${RUST_SNAPSHOT}.tar.gz;name=rust-snapshot \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/rustc-${PV}"
|
|
||||||
|
|
||||||
DEPENDS += "file-native"
|
DEPENDS += "file-native"
|
||||||
|
|
||||||
# We generate local targets, and need to be able to locate them
|
# We generate local targets, and need to be able to locate them
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
require rust.inc
|
require rust.inc
|
||||||
require rust-source-${PV}.inc
|
require rust-source-${PV}.inc
|
||||||
|
|
||||||
|
EXTRA_OECONF = "--disable-rustbuild"
|
||||||
|
|
||||||
SRC_URI += " \
|
SRC_URI += " \
|
||||||
file://rust-${PV}/0001-Target-add-default-target.json-path-libdir-rust-targ.patch \
|
file://rust-${PV}/0001-Target-add-default-target.json-path-libdir-rust-targ.patch \
|
||||||
file://rust-${PV}/0002-mk-for-stage0-use-RUSTFLAGS-to-override-target-libs-.patch \
|
|
||||||
file://rust-${PV}/0003-std-thread_local-workaround-for-NULL-__dso_handle.patch \
|
file://rust-${PV}/0003-std-thread_local-workaround-for-NULL-__dso_handle.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
Reference in New Issue
Block a user