152 Commits

Author SHA1 Message Date
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
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
79c4a9843e multiple fixes
- avoid choking in morestack on i586,
 - fixup dependencies
 - rename rust-cross to internal-rust-cross (in the hope the people are
   less likely to try to inherit it when they shouldn't)
 - enable-local-rust for -target and -cross builds
2014-11-15 21:46:04 -05:00
Cody P Schafer
67094e7ee4 fixes, catch some bugs earlier, reindent python 2014-11-15 17:05:32 -05:00
Cody P Schafer
084e14a567 Trying to build rust-hello-world 2014-11-14 19:07:59 -05:00
Cody P Schafer
56ffb31053 remove old rust-misc.bbclass 2014-11-14 16:09:28 -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