Tyler Hall
483334f02b
rust: aarch64 support
2016-02-02 11:40:25 -05:00
Tyler Hall
aaaeaeed3f
rustlib: libdir may be different between build and host
...
With multilib, we may want to install under lib64 but the rust libraries
get published in the build sysroot under the libdir for the build
machine which is usually just lib. Support these being different.
2016-02-02 11:40:25 -05:00
Wes Lindauer
45d77b849f
rust-bin.bbclass: Add empty do_configure
...
This prevents rust recipes that are missing clean rules from failing
when they are rebuilt.
2016-02-01 16:36:52 -05:00
Steven Walter
ebe7fb0d8f
rust-bin.bbclass: look for RUNPATH instead of RPATH
...
Poky 1.7 uses RPATH is now RUNPATH, so update our grep string appropriately.
Additionally, bitbake is having trouble with the automatic RDEPENDS on
rustlib. Make it explicit for now.
2016-02-01 16:36:52 -05:00
Dan Dedrick
63cf611e65
rust-bin.bbclass: update path to cross output
...
poky 1.7 changes where it publishes cross output to so this recipe
needs to follow that. Unfortunately this path is defined in
cross.bbclass and we can't inherit that since we aren't cross.
2016-02-01 16:36:52 -05:00
Tyler Hall
302cca7529
rust-bin.bbclass: suffix rust libraries with -rs
...
Rust library names may have sonames that overlap with C/C++ libraries.
This causes bitbake to not be able to create the correct automatic
RDEPENDS between packages. The result is that dependencies may not get
automatically installed.
Add -rs to the file name and soname. The crate name remains the same,
and rust is not dependent on the file name to look up the crate inside
the library.
2016-02-01 16:36:52 -05:00
Tyler Hall
232d100c09
Add rand crate
2016-02-01 20:53:51 +00:00
Cody P Schafer
0ed55291b6
cargo: relocate config files to avoid clobber
2016-01-26 17:11:25 -05:00
Tyler Hall
8c83519133
rust-bin/rustlib: install with executable permission
...
Necessary for binaries and required to appease OE's automatic library
RDEPENDS.
2015-07-17 12:52:36 -04:00
Tyler Hall
06f6aeaa79
rust-bin: set soname of shared objects
...
Poky will fail to automatically create RDEPENDS on shared objects
lacking a SONAME in the ELF.
2015-07-17 12:52:36 -04:00
Tyler Hall
837000f68a
rust-bin: common code for building libs
...
Libraries that overlap with the standard library must have explicit
extern declarations. Without something like pkg-config where the
libraries can publish this info, it's easiest to just hard-code the list
of troublesome libraries.
2015-07-17 12:52:36 -04:00
Tyler Hall
8a6f084c66
rust-bin: prefer-dynamic
...
We control static/dynamic by only making one or the other available.
Apparently the default of prefer static causes duplicate symbols for the
standard library.
2015-07-17 12:52:36 -04:00
Tyler Hall
a91af9bbae
Add rust-bin class
...
This provides more defaults that aren't required for compiling with
rustc, but standardize the output for inclusion in a distro.
Things like
- Where to install libraries
- Stripping rustc note sections
- Optimization by default
2015-07-17 12:52:36 -04:00
Cody P Schafer
6bcb69d4c0
cargo.bbclass: CARGO_TARGET_DIR gained a special meaning in cargo, rename to CARGO_TARGET_SUBDIR
2015-06-29 11:20:09 -04:00
Cody P Schafer
457ded34de
cargo: supply a CARGO_HOME variable to keep cargo contained inside bitbake control
2015-05-26 12:06:27 -04:00
Cody P Schafer
5a09bd48bb
rust-installer is naughty
2015-03-02 01:36:20 -05:00
Cody P Schafer
eaa153d122
bump patches & versions
2015-02-27 09:35:59 -05:00
Cody P Schafer
70d0957e6d
rust: switch to using _class-cross and _class-native variables to stop abusing the BBCLASSEXTEND system
2015-02-12 14:37:39 -05:00
Cody P Schafer
f6a6687733
USE_LOCAL_RUST tweaks
2014-12-30 16:00:12 -05:00
Cody P Schafer
de23af86c2
update readme to reflect current reality
2014-12-16 13:56:38 -05:00
Cody P Schafer
c3b58fc4d6
internal-rust-native: correct inhibit
2014-12-16 13:43:25 -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
c1cbe59991
cargo.bbclass: complain if nothing to install is found
2014-12-05 14:58:42 -05:00
Cody P Schafer
439790a703
cargo.bbclass: factor out more of the target binary path
2014-12-05 14:57:05 -05:00
Cody P Schafer
95b80b7bfe
Exporting cargo breaks building cargo
2014-12-05 14:38:33 -05:00
Cody P Schafer
1e0047383e
refactor cargo.bbclass for easier use when we are not directly driving cargo
2014-12-05 14:08:50 -05:00
Cody P Schafer
e07cb2e6f2
cargo: more env vars for gcc-rs
2014-12-03 18:38:12 -05:00
Cody P Schafer
41824cb27a
attempting to use a new cargo
2014-12-03 17:55:13 -05:00
Cody P Schafer
1d2b7f4f11
new cargo, rust tweaks, etc
2014-12-03 14:03:38 -05:00
Cody P Schafer
a66a513686
cargo: proper CC/CFLAGS handling with HOST_* patch
2014-12-03 02:44:06 -05:00
Cody P Schafer
8cc784c414
remove some extra lines, question marks, and add another rpath
2014-12-02 23:07:17 -05:00
Cody P Schafer
3cf2b9e42c
Rework ASSUME_PROVIDED and notes
2014-12-02 16:40:45 -05:00
Cody P Schafer
75deda4847
Tweak inhibit, move comment, update rustc ln
2014-12-02 16:33:00 -05:00
Cody P Schafer
db7d1d0cd9
cargo: disable cargo dep by default
2014-12-02 14:07:19 -05:00
Cody P Schafer
c42a9f51dd
re-add older rust, disable newer by default, allow cargo dep to be disabled
2014-12-02 14:00:50 -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
0035ec3172
tweak rust
2014-11-26 11:26:53 -05:00
Cody P Schafer
d91fa8700a
cargo hacks
2014-11-25 15:23:17 -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
5b26b170fd
rust-native: correct conditional
2014-11-18 12:58:46 -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
e3539d1687
rust: avoid some things that break bitbake, add more patches
2014-11-18 01:57:50 -05:00
Cody P Schafer
2d90348be0
Unify LINK flags
2014-11-17 17:57:46 -05:00
Cody P Schafer
be479a8e39
rust: set link flags more consistently
2014-11-17 16:36:46 -05:00
Cody P Schafer
5dff55ff8c
rust-cross: depend on glibc (may not be correct)
2014-11-17 16:36:09 -05:00
Cody P Schafer
459bc5d88a
tweaks
2014-11-17 03:39:57 -05:00
Cody P Schafer
436d9a6593
This is awful
2014-11-17 01:44:52 -05:00