Steven Walter
c60b799c11
Allow native variants of rust recipes to build
2017-11-02 16:41:58 -04:00
Derek Straka
52c0f97ff6
getVar will expand by default, so the 'True' option is no longer required
...
Signed-off-by: Derek Straka <derek@asterius.io >
2016-12-06 16:08:41 -05:00
Doug Goldstein
d364837120
merge rust-vars and rust-triples to rust-common
...
Merge two bbclasses that were included in the same places so merge it
into one common file.
2016-12-05 10:55:14 -06:00
Doug Goldstein
43c139f131
rust: remove --disable-static only for rust
...
Only remove --disable-static from OECONF for things built from the rust
source and not things inheriting rust.
2016-12-05 10:55:14 -06:00
Doug Goldstein
0827bc626b
rust/rust-bin: move bits to rust-bin
...
Bits that are only used by the rust-bin bbclass should get moved there.
They aren't used by any recipe that includes the rust bbclass.
2016-11-23 11:25:57 -06:00
Doug Goldstein
f748246cae
remove commented out bits
2016-11-22 11:53:43 -06:00
Doug Goldstein
0b6b45fbca
break the triples logic into its own class
...
This is so we can use the Rust triples in Cargo builds and other places
in addition to the Rust build.
2016-11-21 16:22:38 -06:00
Doug Goldstein
7645b9b331
RUSTC_ARCHFLAGS: build for the proper system triple
...
Change to build for the machine we are building for when compiling rust
code and not the compiler itself. See #109 .
2016-11-21 14:55:54 -06:00
Steven Walter
f6c7789c95
rust-cross: don't actually build a compiler
...
Instead of building a full compiler, we can use rust-native to
cross-compile. All we need is a cross-compiled standard library, which
libstd-rs builds, and a compiler spec file. rust-cross is now just used
to generate the json spec file for cross-compiling, which is naturally
much faster.
2016-09-02 12:01:28 -04:00
Tyler Hall
00429e037b
cargo_util: make rustlibdir available
...
This is needed for install and potentially link paths.
2016-08-30 18:08:57 -04:00
Tyler Hall
310cc353a1
Put crate_hash and rpath in RUSTFLAGS for Cargo
...
RUSTFLAGS is used by Cargo and always passed to the compiler. Put our
non-standard crate_hash argument there because it is required for
reproducible builds.
Add the rpath option to avoid having to patch Cargo.toml for this and
remove the function that does so.
Signed-off-by: Tyler Hall <tylerwhall@gmail.com >
2016-07-11 15:15:04 -04:00
Tyler Hall
27ff9aea20
Move rust-bin fixups to rust.bbclass
...
This post-processing will need to be shared between rust-bin and
cargo-based recipes.
Signed-off-by: Tyler Hall <tylerwhall@gmail.com >
2016-07-11 15:14:57 -04:00
Tyler Hall
1f17e68d1e
Move basic variables from rust-bin to rust class
...
rust-bin.bbclass now only contains what is necessary to build crates
using the rust compiler directly and rust.bbclass contains information
shared between rust-bin and cargo.
Signed-off-by: Tyler Hall <tylerwhall@gmail.com >
2016-07-11 15:14:53 -04:00
Derek Straka
94daa39193
Remove the '--disable-static' in the EXTRA_OECONF for all rust-like recipes
2016-02-19 10:34:00 -05:00
Derek Straka
78e51cd7f4
Address parse errors while using getVar to calculate dependency information
2016-02-18 13:24:43 -05:00
Steven Walter
3a832dd439
rust: force crate hash to use bitbake input hash
...
This should eliminate the problems that have been seen when bitbake
rebuilds part of the rust stack (due to missing sstate) and ends up
getting hash mismatches. Unlike rust's internally generated hash, ours
is guaranteed to be stable.
2016-02-03 11:30:56 -05:00
Tyler Hall
483334f02b
rust: aarch64 support
2016-02-02 11:40:25 -05:00
Cody P Schafer
de23af86c2
update readme to reflect current reality
2014-12-16 13:56:38 -05:00
Cody P Schafer
23b9ac934e
rust: use a different INHIBIT_DEFAULT*_DEPS to avoid hardcoding real DEFAULT_DEPS
2014-12-15 15:58:40 -05:00
Cody P Schafer
1d2b7f4f11
new cargo, rust tweaks, etc
2014-12-03 14:03:38 -05:00
Cody P Schafer
e7917112b6
cargo-native builds
2014-12-01 11:06:00 -05:00
Cody P Schafer
d45bd8f7a3
Disable gcc-rs hack, fixup rust-native deps
2014-11-26 13:27:32 -05:00
Cody P Schafer
4b75f09945
split rust.bbclass into rust & cargo classes
2014-11-21 12:11:28 -05:00
Cody P Schafer
5811ada7fe
rust-hello-world builds :)
2014-11-20 20:44:10 -05:00
Cody P Schafer
4b198fb3a4
rust: post-link-args, kill RUST_PATH for now
2014-11-20 02:13:48 -05:00
Cody P Schafer
c40e716008
rust: cleanup for things patched in, make local-rust more reliable
2014-11-18 11:49:14 -05:00
Cody P Schafer
459bc5d88a
tweaks
2014-11-17 03:39:57 -05:00
Cody P Schafer
c9d9b67368
sysroot specification
2014-11-17 01:39:39 -05:00
Cody P Schafer
d8e25c781a
cargo is picky too :(
2014-11-17 00:54:06 -05:00
Cody P Schafer
fb7bee4f4d
fix some instalation and paths, rustc --target ${TARGET_SYS} now just fails to find std
2014-11-16 18:45:58 -05:00
Cody P Schafer
67094e7ee4
fixes, catch some bugs earlier, reindent python
2014-11-15 17:05:32 -05:00
Cody P Schafer
e2d129ca8c
broken more
2014-11-13 17:12:15 -05:00
Cody P Schafer
d1c3e49ac2
triplet hacks
2014-11-13 02:27:29 -05:00
Cody P Schafer
8dbfa259b1
closer
2014-11-12 17:58:19 -05:00
Cody P Schafer
d7d6cf7511
more
2014-11-10 17:25:43 -05:00
Cody P Schafer
f7801cf999
Initial, untested
...
- rust-cross builds
- cargo-native still broken
- untested wrappers for rust and cargo provided in rust.bbclass
2014-10-25 12:50:28 -04:00