Commit Graph

229 Commits

Author SHA1 Message Date
Steven Walter 411f10502c rust-llvm-native: build LLVM in its own recipe
rust takes a painfully long time to build.  A non-trivial part of that
is building LLVM.  Fortuitiously, the LLVM component is common between
the -native compiler and all variants of the -cross compiler.  That
means we can build it once, and reuse the output for any flavor of rust.
That saves build time, and it utilizes bitbake's sstate more
efficiently.  It's win/win!
2015-07-01 11:07:08 -04:00
Tyler Hall 6ba4aebdce rust: enable debuginfo
This gets split out in do_package, so there's no harm in including it.
It is useful to be able to get debug info for the standard library by
installing the -dbg package.
2015-07-01 11:07:08 -04:00
Cody P Schafer 6e9bc43cb8 cargo: update 2015-06-29 11:21:26 -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 a2ef8b117c fixup! rust 2015-06-29 10:33:17 -04:00
Cody P Schafer f55a0b69a1 rustc: add 1.1.0 & update -git 2015-06-26 15:10:14 -04:00
Cody P Schafer 61708ed85e cargo requires newer libgit2 2015-05-26 22:20:53 -04:00
Cody P Schafer 0112bb162a rust: remove no longer used flags 2015-05-26 22:20:53 -04:00
Cody P Schafer 8c4370d5f1 rust: support LINK_{} var 2015-05-26 22:20:53 -04:00
Cody P Schafer b54442aea8 cargo: update 2015-05-26 22:20:53 -04:00
Cody P Schafer ee6dbd5854 rust: update to modern version 2015-05-26 22:20:53 -04:00
Cody P Schafer cc7f43afae cargo: wire up bitbake to fetch cargo snapshot
This is based on Steven Walter's proposed commit "cargo.inc: use bitbake
to fetch the snapshot"
2015-05-26 22:20:53 -04:00
Cody P Schafer 27c6bdb2ce rust: add machinery to fetch the snapshot
This is based on Steven Walter's proposed change "rust-git.inc: use
bitbake to fetch the snapshot".
2015-05-26 22:20:53 -04:00
Cody P Schafer 75b3b171c1 rust: only depend on rust-native if we're using it for our build 2015-05-26 12:06:27 -04:00
Steven Walter 8e1a59dd22 rust.inc: fix depends 2015-05-26 12:06:27 -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 d50952c452 update rustc to 2015-03-23
We need a git version of libgit2 again :(

Also fix the license complaints
2015-05-26 12:06:27 -04:00
Cody Schafer 6fc1459dce Merge pull request #4 from srwalter/fix-arm
Fixes for building rust-cross-arm
2015-04-28 17:22:03 -04:00
Steven Walter cb205800a6 rust.inc: fix ARM soft float
Use RUST_TARGET_SYS instead of hard-coding for hard-float
2015-04-17 16:23:48 -04:00
Steven Walter 8499521d54 rust.inc: include missing dependency on gcc-cross
-cross recipes do not automatically depend on gcc-cross, but rust
definitely needs it.
2015-04-17 08:49:16 -04:00
Cody P Schafer b67e85b0b2 Merge commit 'refs/pull/3/merge' of https://github.com/jmesmon/meta-rust 2015-03-12 14:15:38 -04:00
Paul Osborne 9a6d95f448 Merge 24f3b6d76b into 61b4d4c989 2015-03-11 05:27:06 +00:00
Paul Osborne 24f3b6d76b libgit2: dizzy: tell cmake to use ${AR} for the linker
This resolves https://github.com/jmesmon/meta-rust/issues/1.  This
change is only necessary for systems (like dizzy) that do not
contain poky commit 60d504b431fa7cdc6ded141def7ae18edb1834e5.

Without that commit or this change, do_compile for libgit2 would fail
with the following error:

    CMAKE_AR-NOTFOUND cr libgit2.a  ...
    Error running link command: No such file or directory

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2015-03-11 00:26:26 -05:00
Paul Osborne 518c204b13 Merge 09ecda80af into 61b4d4c989 2015-03-11 05:12:59 +00:00
Paul Osborne 09ecda80af rust: replace pushd usage in rust do_install
In dizzy, the following error was encountered when running do_install
on the rust recipe:

    pushd: not found

According to the bitbake user manual, /bin/sh is used and bashisms
(like pushd) should be avoided.  In my case, /bin/sh turns out to
be zsh (with no extra configuration, so pushd is not present).

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2015-03-11 00:10:58 -05:00
Cody P Schafer 61b4d4c989 bump cargo version 2015-03-10 13:31:57 -04:00
Cody P Schafer f9ddcfba1c libgit2 has a release version that works for us, use remove the -git version for now 2015-03-10 13:31:48 -04:00
Cody P Schafer b180bf996d rust fixups 2015-03-09 22:09:36 -04:00
Cody P Schafer 646ac09232 update cargo 2015-03-09 14:59:39 -04:00
Cody P Schafer 6c977f2436 update rust 2015-03-09 14:59:34 -04:00
Cody P Schafer 68f9ed6580 rust: update to 2015-03-09 2015-03-09 12:10:50 -04:00
Cody P Schafer aec0c0f007 final changes to fix rust installation 2015-03-02 16:43:54 -05:00
Cody P Schafer 27b6aeb22c rust: more changes 2015-03-02 13:38:25 -05:00
Cody P Schafer 5a09bd48bb rust-installer is naughty 2015-03-02 01:36:20 -05:00
Cody P Schafer b837ba36e1 cargo: more fixups 2015-03-02 01:20:29 -05:00
Cody P Schafer aefa26aba0 cargo fixups 2015-03-02 01:19:34 -05:00
Cody P Schafer aed47cc2f2 cargo: remove unused srcrev 2015-03-01 23:28:27 -05:00
Cody P Schafer 3d0f16ce11 cargo bump, rustc fixups 2015-03-01 23:18:01 -05:00
Cody P Schafer cd348b34b0 bump rust 2015-03-01 23:12:51 -05:00
Cody P Schafer eaa153d122 bump patches & versions 2015-02-27 09:35:59 -05:00
Cody P Schafer 18aa5bd379 more rust 2015-02-17 10:50:02 -05:00
Cody P Schafer 4b6b493959 cargo: remove no-longer-used patch 2015-02-13 14:32:48 -05:00
Cody P Schafer 61c90c814f readme: update to reflect the state of cargo alternate build functionality 2015-02-13 14:32:03 -05:00
Cody P Schafer e48146a2fd rust: remove -e (environment overrides) as all overrides should be generated into the target.mk and target.json files 2015-02-13 14:31:37 -05:00
Cody P Schafer f43f21ccd0 deps/libssh2: allow -native builds 2015-02-13 14:30:52 -05:00
Cody P Schafer beadb56e97 rust: now shipping a gdb helper and no lldb helper 2015-02-12 15:35:02 -05:00
Cody P Schafer 08ef1628e1 rust: enable parallel submakes 2015-02-12 15:12:29 -05:00
Cody P Schafer 4c55e9515d rust: workaround snapshot having target-word-size 2015-02-12 14:55:22 -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 6b6f4714c9 rust: update copyright hash for new year 2015-02-12 14:24:38 -05:00