Anatol Belski
c06069fdaa
cross-canadian: Sync with 1.51.0 addition for rustc and cargo
...
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2021-03-30 15:13:28 +00:00
Anatol Belski
e492b2d86f
ident: Fix more WS issues
2021-03-30 15:11:59 +00:00
Anatol Belski
439dea8664
nativesdk: Implement cross canadian support
...
This addition closes #236 requesting the SDK support. The implementation
consists on a yet minimum set of worky functionality;
- Includes rustc, rustdoc and cargo.
- Includes libstd and accompanying lib archives for host and for target.
- Integrates with the standard environment setup script.
- Integrates configurations automatically build for target.
The supported build host is still AMD64 only.
Note that there's no need on introducing crosssdk package as the
official snapshot package serves same way as a non SDK build.
Possible future directions:
- Offline build:
- Support pre-cached set of crates that can be vendored.
- Support pre-filled cargo registry.
- Support further tools like cargo-fmt, cargo-clippy, GDB support and so
on.
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com >
2021-03-30 15:11:59 +00:00
Khem Raj
64c625f119
cargo/libstd-rs: Forward port musl/riscv support
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2021-03-28 15:55:12 -07:00
Colin Finck
191cd91817
Update to Rust 1.51.0 and remove 1.47.0
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2021-03-28 15:55:12 -07:00
Khem Raj
c1e1921e03
rust/cargo/libstd-rs: Add riscv/musl support
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2021-02-17 21:56:19 -08:00
Colin Finck
87e8d50abd
Keep only the most recent two Rust versions.
...
Older ones are already unbuildable and nobody misses them, see https://github.com/meta-rust/meta-rust/issues/298
2021-02-09 15:09:14 +01:00
Martin Jansa
c976184935
{cargo,rust}-1.49.0: simplify as in https://github.com/meta-rust/meta-rust/pull/299
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2021-02-08 17:04:06 +01:00
Cody Schafer
d15e66ae93
Merge pull request #303 from janderholm/nativebuilds
...
Fix *-native cargo builds
2021-02-08 10:14:12 -05:00
Cody Schafer
2c34da11f0
Merge pull request #293 from danc86/add-rust-1.49
...
add rust 1.49.0
2021-02-08 10:10:26 -05:00
Johan Anderholm
0025cebb12
Fix *-native cargo builds
...
Normally all *-native packages needs to depend on cargo-native in order
to be able to use cargo. When building cargo-native however, this is not
available and we use a snapshot.
Fixes #302 .
2021-02-08 16:04:39 +01:00
Dan Callaghan
0ee328aa26
add rust 1.49.0
...
Now it seems `./x.py install` is the only way to assemble a fully
working stage 2 cross-built compiler. See rust-lang/rust#81702 .
2021-02-08 08:04:30 +10:00
Martin Jansa
a31a4070d3
cargo: move LIC_FILES_CHKSUM from cargo_*.bb to cargo.inc where LICENSE is set
...
* only the oldest 1.34.2 is the exception with different value, so
stop duplicating it
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2021-02-07 19:23:09 +01:00
Johan Anderholm
a673320995
cargo: Enable build separation
...
Place generated artifacts in the directory suggested by bitbake (${B})
instead of directly in the source directory. This has multiple
advantages such as the ability to share source directory between
multiple machine types without risking cross contamination.
2021-01-08 16:47:40 +01:00
Steven Walter
7ff669d8ce
Merge pull request #284 from danc86/add-rust-1.47
...
add rust 1.47
2020-12-22 13:26:33 -05:00
Dan Callaghan
4b151fa804
add rust 1.47.0
2020-12-18 21:05:13 +10:00
Dan Callaghan
aec6519e23
cargo: add missing version 1.46.0
...
Rust version 1.46.0 was added to the layer a while back, but the
corresponding cargo recipe seems to have been missed.
2020-12-18 21:04:02 +10:00
Colin Finck
8a44baed44
Disable LIBGIT2_SYS_USE_PKG_CONFIG due to incompatibility with 0.28.x
...
libgit2 0.28.x is shipped by latest Yocto Dunfell.
According to https://github.com/rust-lang/git2-rs/issues/458#issuecomment-522567539 , there are no compatibility guarantees between libgit2-sys and arbitrary system libgit2 versions, so better keep this turned off.
Fixes "invalid version 3 on git_proxy_options" during build.
Further references:
* https://github.com/rust-lang/git2-rs/issues/458
* https://bugs.gentoo.org/707746#c1
2020-10-06 17:35:54 +02:00
Alistair Francis
2c7321dac6
Bump to Rust version 1.43
...
Signed-off-by: Alistair Francis <alistair@alistair23.me >
2020-05-13 22:52:39 -07:00
Steven Walter
b84c61eb85
Revert "cargo: fix progress output"
...
This reverts commit dd0fc89389 .
2020-05-12 10:22:06 -04:00
Steven Walter
dd0fc89389
cargo: fix progress output
...
This patch got dropped from the new cargo version
2020-05-11 22:18:35 -04:00
Colin Finck
4a763a2301
Update 0001-Disable-http2.patch for cargo 1.41.0
2020-02-11 17:11:14 +01:00
Colin Finck
5c7f51b6ad
Update to Rust 1.41.0
2020-02-10 11:17:51 +01:00
Steven Walter
d8d77be129
Merge pull request #259 from ColinFinck/update-to-rust-1.40.0
...
Update to Rust 1.40.0
2020-02-08 12:25:27 -05:00
Alex Kiernan
837b63596d
cargo: Refresh http2 disable patch
...
Fixes:
WARNING: Fuzz detected:
checking file Cargo.toml
Hunk #1 succeeded at 24 with fuzz 1.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com >
2020-01-12 20:38:18 +00:00
Colin Finck
2668f6afd3
Update 0001-Disable-http2.patch for Cargo shipped with Rust 1.40.0
2020-01-06 10:55:39 +01:00
Colin Finck
e5c2a4085f
Update to Rust and Cargo 1.40.0.
2020-01-06 10:03:13 +01:00
Reto Schneider
71895ec5a4
Update to Rust and Cargo 1.39.0
2019-11-08 18:00:16 +01:00
Steven Walter
11aed43748
cargo-1.37.0: fix patch fuzz
...
Regenerate context lines with devtool. This fixes a patch-fuzz warning
2019-08-31 13:58:55 -04:00
Colin Finck
afccedc43c
Update to Rust and Cargo 1.37.0.
2019-08-29 11:31:28 +02:00
Johan Anderholm
2f323e1e9e
Update to rust and cargo version 1.36.0
2019-08-02 09:35:31 +00:00
Alex Kiernan
bcbe02f6ac
cargo: Fix patch fuzz
...
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com >
2019-06-07 12:10:04 +01:00
Takuro Ashie
03f492ab35
Update to rust version 1.34.2
2019-06-06 17:56:39 +09:00
Andrei Gherzan
4a88247046
cargo: Refresh patch to avoid build warning
...
Signed-off-by: Andrei Gherzan <andrei@balena.io >
2019-04-17 16:44:58 +01:00
Johan Anderholm
723e24bd9d
Update to rust version 1.33.0
2019-03-02 07:28:09 +00:00
Johan Anderholm
fa0aebc070
Disable http2 in cargo
...
Since 1.31.0 cargo requires curl to support http2. Enabling http2 in
curl results in a dependency loop. This commit disables the use of
multiplexing and http2.
2019-02-15 12:34:37 +00:00
Johan Anderholm
b3d1b589ee
Update to rust version 1.32.0
2019-02-14 15:29:17 +00:00
Johan Anderholm
cb383b0d90
Remove rust 1.27.1
2019-02-14 15:29:17 +00:00
Johan Anderholm
9952633163
Use cargo version shipped with rust source
...
The source of cargo used in a release is shipped with the rust source.
Use this instead of the source from github to make sure cargo and rust
are always kept in sync.
This also makes updating rust version a bit easier.
2019-02-14 15:29:17 +00:00
Otavio Salvador
f54025fed9
cargo: Add 0.31.0 recipe
...
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br >
2018-11-09 08:06:29 -02:00
Otavio Salvador
f317737fae
cargo: Ensure libssh2 from system is used
...
This forces the use of libssh2 by exporting the
LIBSSH2_SYS_USE_PKG_CONFIG environment variable.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br >
2018-11-05 14:33:01 -02:00
Johan Anderholm
bbf4f77f98
Bump to Rust 1.27.1
2018-07-18 08:15:34 +02:00
Johan Anderholm
6a0d148968
Make it possible to build with TCLIBC="musl" (musl as libc)
2018-07-06 19:34:33 +02:00
Johan Anderholm
03d8fb472c
Bump to Rust 1.26.2
...
Remove old versions because they are not compatible with the changes in
rust-common.bbclass
2018-06-16 09:50:47 +02:00
Adam Schwalm
0639277e4c
Add 1.24.0 for rocko
2018-02-27 16:19:12 -06:00
Jonathan Creekmore
b28674a452
support Rust 1.21.0 and Cargo 0.22.0
2017-10-31 16:45:30 -05:00
Doug Goldstein
d231fcb708
drop Rust 1.15.1 / Cargo 0.16
2017-10-10 11:22:26 -05:00
Doug Goldstein
3bf7088579
bump to Rust 1.20.0 and Cargo 0.21
2017-09-29 15:37:16 -05:00
Johan Anderholm
a4fe235317
Switch to rustbuild
...
Switch the build process to using Rust's new build system called
rustbuild. At the same time stop using jemalloc on all platforms and
switch to the system allocator since that was simplier to do.
2017-09-29 09:49:33 -05:00
Doug Goldstein
1ff41650d5
cargo: convert to versioned include file
...
We'll need the prior version of cargo to boot strap ourselves going
forward so include the version info so we can support multiple versions
in the tree.
2017-09-29 09:49:31 -05:00